Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 113 kB / 17.05 MB, free: 6.086 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.001798/0.001798, allocations: 188 kB / 17.99 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.957/1.957, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001639/0.001639, allocations: 47.94 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1673, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.4459/0.6132, allocations: 7.089 MB / 381.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007648/0.621, allocations: 2.392 MB / 384 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.6232, allocations: 20.75 kB / 384 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.6258, allocations: 0.4913 MB / 384.5 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.6284, allocations: 382.2 kB / 384.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000843/0.6292, allocations: 204.4 kB / 385 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002725/0.632, allocations: 1.203 MB / 386.2 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.633, allocations: 0.5101 MB / 386.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.6344, allocations: 452.6 kB / 387.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008168/0.6352, allocations: 499.2 kB / 387.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002169/0.6354, allocations: 113.9 kB / 387.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004812/0.6359, allocations: 157.3 kB / 387.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.6361, allocations: 229.7 kB / 388.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000631/0.6368, allocations: 0.5421 MB / 388.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002557/0.6393, allocations: 1.439 MB / 390.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.6394, allocations: 0 / 390.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6394, allocations: 1.25 kB / 390.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.6394, allocations: 0 / 390.2 MB, free: 5.66 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002636/0.6421, allocations: 1.277 MB / 391.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.6421, allocations: 9.656 kB / 391.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006705/0.6428, allocations: 151.5 kB / 391.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.6442, allocations: 0.6516 MB / 392.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.631e-05/0.6443, allocations: 62.22 kB / 392.3 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.6444, allocations: 75.73 kB / 392.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.6461, allocations: 0.7844 MB / 393.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.6461, allocations: 6.297 kB / 393.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.386e-05/0.6462, allocations: 31.69 kB / 393.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.268e-05/0.6462, allocations: 19.12 kB / 393.2 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.6474, allocations: 0.5245 MB / 393.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005178/0.6526, allocations: 3.373 MB / 397.1 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.6533, allocations: 230.4 kB / 397.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.6536, allocations: 125.5 kB / 397.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.6536, allocations: 3.047 kB / 397.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.6537, allocations: 36.78 kB / 397.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 3.016e-06/0.6537, allocations: 0 / 397.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.002737/0.6564, allocations: 1.055 MB / 398.6 MB, free: 256 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.6565, allocations: 81.19 kB / 398.6 MB, free: 160 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.6578, allocations: 0.7403 MB / 399.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.6579, allocations: 26.89 kB / 399.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005094/0.6584, allocations: 0.5127 MB / 399.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.6586, allocations: 115 kB / 400 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.6588, allocations: 118.1 kB / 400.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.659, allocations: 375 kB / 400.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000288/0.6593, allocations: 126.2 kB / 400.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005509/0.6599, allocations: 419.2 kB / 401 MB, free: 14.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009036/0.6608, allocations: 0.5666 MB / 401.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.6608, allocations: 3.281 kB / 401.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001305/0.6621, allocations: 0.6151 MB / 402.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.6622, allocations: 10.41 kB / 402.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.6622, allocations: 9.625 kB / 402.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.6624, allocations: 41.33 kB / 402.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.6629, allocations: 135 kB / 402.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.6643, allocations: 1.396 MB / 403.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007878/0.6651, allocations: 32.78 kB / 403.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.6652, allocations: 28.75 kB / 403.9 MB, free: 12.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005183/0.6657, allocations: 239.7 kB / 404.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.6659, allocations: 72.78 kB / 404.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000798/0.6667, allocations: 323 kB / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.6667, allocations: 2.938 kB / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.6667, allocations: 0 / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.6667, allocations: 3.484 kB / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002391/0.6691, allocations: 1.109 MB / 405.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6691, allocations: 1.156 kB / 405.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.6695, allocations: 52.66 kB / 405.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001479/0.6696, allocations: 28.5 kB / 405.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.6697, allocations: 7.5 kB / 405.7 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.6709, allocations: 1.379 MB / 407.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.6709, allocations: 2.406 kB / 407.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.6722, allocations: 0.5616 MB / 407.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004612/0.6727, allocations: 177.8 kB / 407.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/0.6728, allocations: 12.52 kB / 407.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.6732, allocations: 21.61 kB / 407.8 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-05/0.6733, allocations: 31.16 kB / 407.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.6733, allocations: 6.656 kB / 407.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009393/0.6742, allocations: 0.5026 MB / 408.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.029e-06/0.6742, allocations: 0 / 408.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009943/0.6752, allocations: 166.7 kB / 408.5 MB, free: 8.625 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.00029/0.6755, allocations: 120.5 kB / 408.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.6767, allocations: 462.1 kB / 409.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.6768, allocations: 1.5 kB / 409.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004648/0.6772, allocations: 236.6 kB / 409.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.6784, allocations: 192.9 kB / 409.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.6816, allocations: 1.432 MB / 411 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007942/0.6824, allocations: 0.9447 MB / 411.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000456/0.6829, allocations: 85.22 kB / 412 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.683, allocations: 50.92 kB / 412 MB, free: 6.152 MB / 334.1 MB Notification: Performance of SimCode: time 1.633e-06/0.683, allocations: 0 / 412 MB, free: 6.152 MB / 334.1 MB Notification: Performance of Templates: time 0.02755/0.7106, allocations: 8.283 MB / 420.3 MB, free: 0.5742 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)