Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.00121/0.00121, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.89 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4391/0.4402, allocations: 58.06 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007358/0.4476, allocations: 5.167 MB / 0.5091 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.4509, allocations: 1.986 MB / 0.5111 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003939/0.4514, allocations: 14.88 kB / 0.5111 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006659/0.452, allocations: 150.2 kB / 0.5112 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.4532, allocations: 357.3 kB / 0.5116 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006465/0.4539, allocations: 214 kB / 0.5118 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.455, allocations: 0.7002 MB / 0.5125 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005885/0.4556, allocations: 436.1 kB / 0.5129 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.456, allocations: 289.3 kB / 0.5132 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004859/0.4565, allocations: 289.8 kB / 0.5134 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.545e-05/0.4566, allocations: 46.88 kB / 0.5135 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.4569, allocations: 90.28 kB / 0.5136 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.4571, allocations: 157.9 kB / 0.5137 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.4574, allocations: 266.6 kB / 0.514 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.4585, allocations: 0.651 MB / 0.5146 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4585, allocations: 1.266 kB / 0.5146 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4585, allocations: 3.938 kB / 0.5146 GB, free: 1.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.4586, allocations: 0 / 0.5146 GB, free: 1.094 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001496/0.4601, allocations: 0.8594 MB / 0.5154 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4601, allocations: 12.77 kB / 0.5155 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.4602, allocations: 59.62 kB / 0.5155 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007688/0.461, allocations: 495 kB / 0.516 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.4611, allocations: 27.44 kB / 0.516 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.559e-05/0.4611, allocations: 41.34 kB / 0.5161 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000811/0.462, allocations: 453.6 kB / 0.5165 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.462, allocations: 6.578 kB / 0.5165 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.462, allocations: 19.94 kB / 0.5165 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.4621, allocations: 9.844 kB / 0.5165 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006717/0.4628, allocations: 273.5 kB / 0.5168 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002913/0.4657, allocations: 1.856 MB / 0.5186 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/0.4663, allocations: 250.8 kB / 0.5188 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.4665, allocations: 91.42 kB / 0.5189 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.213e-05/0.4665, allocations: 7.219 kB / 0.5189 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000378/0.4669, allocations: 175 kB / 0.5191 GB, free: 13.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.4669, allocations: 0 / 0.5191 GB, free: 13.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001893/0.4688, allocations: 0.9242 MB / 0.52 GB, free: 13.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/0.4689, allocations: 132.9 kB / 0.5201 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.4694, allocations: 409.4 kB / 0.5205 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.4694, allocations: 30.98 kB / 0.5205 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.4696, allocations: 272.3 kB / 0.5208 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.981e-05/0.4697, allocations: 91.64 kB / 0.5209 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.4699, allocations: 70.88 kB / 0.521 GB, free: 12.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.47, allocations: 353.5 kB / 0.5213 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.4702, allocations: 84.14 kB / 0.5214 GB, free: 12.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.4704, allocations: 215.7 kB / 0.5216 GB, free: 11.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.4709, allocations: 316.7 kB / 0.5219 GB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4709, allocations: 4.109 kB / 0.5219 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008826/0.4718, allocations: 435.7 kB / 0.5223 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.4718, allocations: 5.781 kB / 0.5223 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4718, allocations: 4.375 kB / 0.5223 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004157/0.4722, allocations: 94.59 kB / 0.5224 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.4725, allocations: 67.75 kB / 0.5225 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.475, allocations: 2.011 MB / 0.5244 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.4753, allocations: 18.12 kB / 0.5244 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.4753, allocations: 18.62 kB / 0.5245 GB, free: 9.734 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002339/0.4756, allocations: 198 kB / 0.5247 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.479e-05/0.4756, allocations: 43.5 kB / 0.5247 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000639/0.4763, allocations: 304.8 kB / 0.525 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.4763, allocations: 3.75 kB / 0.525 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4763, allocations: 1.938 kB / 0.525 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.4763, allocations: 2.047 kB / 0.525 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.4775, allocations: 0.7678 MB / 0.5257 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4775, allocations: 0 / 0.5257 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.4778, allocations: 45.83 kB / 0.5258 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002254/0.478, allocations: 52.27 kB / 0.5258 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.478, allocations: 8.203 kB / 0.5258 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.4796, allocations: 1.549 MB / 0.5274 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4796, allocations: 2.172 kB / 0.5274 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008746/0.4805, allocations: 0.4956 MB / 0.5278 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.4807, allocations: 131.6 kB / 0.528 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.4807, allocations: 8.109 kB / 0.528 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.481, allocations: 14.41 kB / 0.528 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.4811, allocations: 30.58 kB / 0.528 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.4811, allocations: 5.797 kB / 0.528 GB, free: 6.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004028/0.4815, allocations: 290.9 kB / 0.5283 GB, free: 6.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4815, allocations: 4 kB / 0.5283 GB, free: 6.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006032/0.4821, allocations: 107.4 kB / 0.5284 GB, free: 6.762 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009859/0.4831, allocations: 393.4 kB / 0.5288 GB, free: 6.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.4841, allocations: 406.6 kB / 0.5292 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4841, allocations: 0.9062 kB / 0.5292 GB, free: 6.363 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.4846, allocations: 244.4 kB / 0.5294 GB, free: 6.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007309/0.4853, allocations: 131.8 kB / 0.5295 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.4873, allocations: 1.096 MB / 0.5306 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.4877, allocations: 0.8523 MB / 0.5314 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002348/0.488, allocations: 71.72 kB / 0.5315 GB, free: 4.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.4881, allocations: 32.69 kB / 0.5315 GB, free: 4.738 MB / 398.1 MB Notification: Performance of SimCode: time 1.462e-06/0.4881, allocations: 1.594 kB / 0.5315 GB, free: 4.738 MB / 398.1 MB Notification: Performance of Templates: time 0.01247/0.5006, allocations: 6.272 MB / 0.5377 GB, free: 2.387 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)