Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009185/0.009185, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001381, allocations: 201.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 41.59 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1386, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01263/0.1513, allocations: 8.04 MB / 381.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007995/0.1594, allocations: 2.677 MB / 383.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.1617, allocations: 23.94 kB / 383.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.1646, allocations: 0.5481 MB / 384.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.1675, allocations: 472.3 kB / 384.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1688, allocations: 247.7 kB / 385.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.1718, allocations: 1.475 MB / 386.6 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.1731, allocations: 0.5845 MB / 387.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.1742, allocations: 0.5447 MB / 387.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.1755, allocations: 0.5988 MB / 388.4 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003997/0.1759, allocations: 136 kB / 388.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007473/0.1767, allocations: 183.9 kB / 388.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003693/0.1771, allocations: 275 kB / 389 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.1783, allocations: 0.6649 MB / 389.6 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.181, allocations: 1.728 MB / 391.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.181, allocations: 3.984 kB / 391.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.181, allocations: 4 kB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.085e-05/0.1811, allocations: 0 / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003784/0.1849, allocations: 1.486 MB / 392.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1849, allocations: 8.031 kB / 392.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008766/0.1858, allocations: 196 kB / 393 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.1877, allocations: 0.7384 MB / 393.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.06e-05/0.1878, allocations: 74 kB / 393.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002918/0.1881, allocations: 104 kB / 394 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.1901, allocations: 0.9268 MB / 394.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.087e-05/0.1901, allocations: 7.938 kB / 394.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/0.1902, allocations: 44 kB / 394.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.592e-05/0.1903, allocations: 28 kB / 395 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.1917, allocations: 0.6363 MB / 395.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006083/0.1978, allocations: 3.893 MB / 399.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007663/0.1986, allocations: 436.6 kB / 399.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007462/0.1993, allocations: 277.2 kB / 400.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.1994, allocations: 8.266 kB / 400.2 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.1994, allocations: 38.89 kB / 400.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.725e-06/0.1994, allocations: 0 / 400.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.002787/0.2022, allocations: 1.413 MB / 401.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.2023, allocations: 93.03 kB / 401.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.2035, allocations: 0.8176 MB / 402.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.2035, allocations: 37.7 kB / 402.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004637/0.204, allocations: 0.5696 MB / 403.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.2042, allocations: 166.6 kB / 403.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.2044, allocations: 126.6 kB / 403.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.2046, allocations: 334 kB / 403.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.2049, allocations: 169.9 kB / 403.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.2055, allocations: 464 kB / 404.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008772/0.2063, allocations: 0.6546 MB / 405 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2064, allocations: 0 / 405 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001304/0.2077, allocations: 0.775 MB / 405.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.2077, allocations: 8 kB / 405.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.2077, allocations: 15.94 kB / 405.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.208, allocations: 81.61 kB / 405.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.2086, allocations: 160 kB / 406.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.2114, allocations: 3.138 MB / 409.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007082/0.2122, allocations: 39.88 kB / 409.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.2122, allocations: 36 kB / 409.3 MB, free: 12.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005574/0.2128, allocations: 265.6 kB / 409.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.213, allocations: 91.44 kB / 409.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009781/0.214, allocations: 495.5 kB / 410.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.214, allocations: 4 kB / 410.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.214, allocations: 4.125 kB / 410.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.214, allocations: 3.984 kB / 410.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.2162, allocations: 1.435 MB / 411.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2162, allocations: 0 / 411.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002962/0.2165, allocations: 76.11 kB / 411.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.2168, allocations: 69.62 kB / 411.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.2168, allocations: 16 kB / 411.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002814/0.2197, allocations: 3.13 MB / 414.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.2197, allocations: 8 kB / 414.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.2209, allocations: 0.7587 MB / 415.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003963/0.2214, allocations: 204.5 kB / 415.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.2215, allocations: 15.94 kB / 415.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.2219, allocations: 27.98 kB / 415.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.2221, allocations: 35.89 kB / 415.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.2221, allocations: 12 kB / 415.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009038/0.223, allocations: 0.5615 MB / 416.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.223, allocations: 0 / 416.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001037/0.2241, allocations: 208 kB / 416.7 MB, free: 4.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000316/0.2244, allocations: 127.1 kB / 416.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.2258, allocations: 0.6873 MB / 417.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2258, allocations: 0 / 417.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007237/0.2266, allocations: 446.1 kB / 417.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2277, allocations: 223.5 kB / 418.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.2309, allocations: 1.743 MB / 419.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008002/0.2318, allocations: 1.001 MB / 420.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000528/0.2323, allocations: 111.2 kB / 421 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.2324, allocations: 55.44 kB / 421 MB, free: 15.66 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2324, allocations: 0 / 421 MB, free: 15.66 MB / 366.1 MB Notification: Performance of Templates: time 0.02893/0.2614, allocations: 10.67 MB / 431.7 MB, free: 4.973 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)