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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001513/0.001513, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.475/1.475, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001643/0.001643, allocations: 119 kB / 248.1 MB, free: 6.332 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1646/0.1646, allocations: 37.92 MB / 330.9 MB, free: 7.316 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.459e-05/1.432e-05, allocations: 4 kB / 390.4 MB, free: 78.24 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08087, allocations: 53.24 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3329/0.4138, allocations: 95.71 MB / 0.5267 GB, free: 9.293 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001235/0.4151, allocations: 0.5833 MB / 0.5272 GB, free: 9.188 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03358/0.4487, allocations: 14.37 MB / 0.5413 GB, free: 192 kB / 347.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4487, allocations: 0 / 0.5413 GB, free: 192 kB / 347.1 MB Notification: Performance of Transformations before backend: time 3.172e-05/0.4488, allocations: 12 kB / 0.5413 GB, free: 180 kB / 347.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.001232/0.45, allocations: 0.7495 MB / 0.542 GB, free: 15.41 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4501, allocations: 12.03 kB / 0.542 GB, free: 15.39 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.4502, allocations: 55.34 kB / 0.5421 GB, free: 15.34 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.4516, allocations: 0.6855 MB / 0.5427 GB, free: 14.74 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.4517, allocations: 15.98 kB / 0.5428 GB, free: 14.73 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.078e-05/0.4517, allocations: 26.8 kB / 0.5428 GB, free: 14.7 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004148/0.4522, allocations: 230.2 kB / 0.543 GB, free: 14.56 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.4528, allocations: 404.6 kB / 0.5434 GB, free: 14.21 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.4528, allocations: 3.984 kB / 0.5434 GB, free: 14.2 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.4529, allocations: 0 / 0.5434 GB, free: 14.2 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.4529, allocations: 12 kB / 0.5434 GB, free: 14.19 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.4549, allocations: 1.783 MB / 0.5451 GB, free: 12.56 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.4553, allocations: 235 kB / 0.5454 GB, free: 12.37 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.4555, allocations: 78 kB / 0.5454 GB, free: 12.3 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.4555, allocations: 8.125 kB / 0.5455 GB, free: 12.3 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.4557, allocations: 166.4 kB / 0.5456 GB, free: 12.15 MB / 363.1 MB Notification: Performance of pre-optimization done (n=24): time 2.514e-06/0.4558, allocations: 3.938 kB / 0.5456 GB, free: 12.14 MB / 363.1 MB Notification: Performance of matching and sorting (n=27): time 0.001698/0.4575, allocations: 0.9957 MB / 0.5466 GB, free: 11.18 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.4575, allocations: 136.3 kB / 0.5467 GB, free: 11.02 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.4579, allocations: 306.4 kB / 0.547 GB, free: 10.77 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.4579, allocations: 25.7 kB / 0.547 GB, free: 10.74 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.4581, allocations: 269 kB / 0.5473 GB, free: 10.53 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.761e-05/0.4582, allocations: 90.47 kB / 0.5474 GB, free: 10.45 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.4582, allocations: 0 / 0.5474 GB, free: 10.45 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4583, allocations: 361.8 kB / 0.5477 GB, free: 10.11 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.4585, allocations: 75.42 kB / 0.5478 GB, free: 10.06 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.4587, allocations: 203.8 kB / 0.548 GB, free: 9.844 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.4589, allocations: 108.7 kB / 0.5481 GB, free: 9.773 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.4589, allocations: 0 / 0.5481 GB, free: 9.773 MB / 363.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008696/0.4598, allocations: 392.5 kB / 0.5485 GB, free: 9.449 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.4598, allocations: 33.7 kB / 0.5485 GB, free: 9.41 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4599, allocations: 4 kB / 0.5485 GB, free: 9.406 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004008/0.4603, allocations: 99.12 kB / 0.5486 GB, free: 9.32 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.4605, allocations: 71.22 kB / 0.5487 GB, free: 9.254 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.4626, allocations: 1.726 MB / 0.5503 GB, free: 7.605 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.4629, allocations: 24 kB / 0.5504 GB, free: 7.582 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.4629, allocations: 23.3 kB / 0.5504 GB, free: 7.562 MB / 363.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.4631, allocations: 112.9 kB / 0.5505 GB, free: 7.445 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.25e-05/0.4631, allocations: 37.97 kB / 0.5505 GB, free: 7.41 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005484/0.4637, allocations: 275.7 kB / 0.5508 GB, free: 7.195 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.4637, allocations: 8 kB / 0.5508 GB, free: 7.188 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4637, allocations: 3.953 kB / 0.5508 GB, free: 7.184 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4637, allocations: 0 / 0.5508 GB, free: 7.184 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009638/0.4647, allocations: 0.694 MB / 0.5515 GB, free: 6.59 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4647, allocations: 0 / 0.5515 GB, free: 6.59 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.465, allocations: 54.84 kB / 0.5515 GB, free: 6.539 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.4652, allocations: 47.88 kB / 0.5516 GB, free: 6.496 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.4652, allocations: 4 kB / 0.5516 GB, free: 6.492 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.4664, allocations: 1.389 MB / 0.5529 GB, free: 5.09 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4664, allocations: 0 / 0.5529 GB, free: 5.09 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006872/0.4671, allocations: 496.9 kB / 0.5534 GB, free: 4.66 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.4672, allocations: 136.7 kB / 0.5536 GB, free: 4.52 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.4673, allocations: 3.984 kB / 0.5536 GB, free: 4.516 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.4675, allocations: 11.95 kB / 0.5536 GB, free: 4.504 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.596e-05/0.4676, allocations: 25.59 kB / 0.5536 GB, free: 4.484 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.4676, allocations: 11.92 kB / 0.5536 GB, free: 4.473 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.4679, allocations: 236.2 kB / 0.5538 GB, free: 4.293 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4679, allocations: 7.938 kB / 0.5538 GB, free: 4.285 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0005115/0.4684, allocations: 110 kB / 0.5539 GB, free: 4.184 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007338/0.4691, allocations: 314.3 kB / 0.5542 GB, free: 3.93 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0007516/0.4699, allocations: 431.1 kB / 0.5547 GB, free: 3.559 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4699, allocations: 0 / 0.5547 GB, free: 3.559 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.4703, allocations: 234.5 kB / 0.5549 GB, free: 3.352 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005228/0.4708, allocations: 94.08 kB / 0.555 GB, free: 3.277 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.4722, allocations: 0.77 MB / 0.5557 GB, free: 2.547 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.4727, allocations: 0.8646 MB / 0.5566 GB, free: 1.66 MB / 363.1 MB Notification: Performance of simCode: alias equations: time 0.0002487/0.4729, allocations: 59.23 kB / 0.5566 GB, free: 1.602 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.157e-05/0.473, allocations: 35.42 kB / 0.5567 GB, free: 1.566 MB / 363.1 MB Notification: Performance of SimCode: time 2.61e-07/0.473, allocations: 0 / 0.5567 GB, free: 1.566 MB / 363.1 MB Notification: Performance of Templates: time 0.01018/0.4832, allocations: 4.977 MB / 0.5615 GB, free: 12.6 MB / 379.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)