Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.225/0.225, allocations: 38.53 MB / 346.3 MB, free: 2.07 MB / 270.1 MB
"
[Timeout remaining time 179]
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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm")
translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002712/0.002712, allocations: 59.89 kB / 484.5 MB, free: 11.13 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4073, allocations: 61.3 MB / 0.533 GB, free: 5.551 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006841/0.4142, allocations: 5.418 MB / 0.5383 GB, free: 1.637 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00231/0.4165, allocations: 1.598 MB / 0.5399 GB, free: 352 kB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.4168, allocations: 28.47 kB / 0.5399 GB, free: 336 kB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004555/0.4173, allocations: 124.6 kB / 0.54 GB, free: 232 kB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0008227/0.4181, allocations: 323.8 kB / 0.5403 GB, free: 15.97 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004385/0.4186, allocations: 153.7 kB / 0.5405 GB, free: 15.84 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009773/0.4195, allocations: 0.6949 MB / 0.5412 GB, free: 15.44 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005324/0.4201, allocations: 338.5 kB / 0.5415 GB, free: 15.21 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004963/0.4206, allocations: 297.1 kB / 0.5418 GB, free: 15.04 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.421, allocations: 299.6 kB / 0.5421 GB, free: 14.86 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.028e-05/0.4211, allocations: 45.44 kB / 0.5421 GB, free: 14.86 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.4212, allocations: 45.72 kB / 0.5421 GB, free: 14.86 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001901/0.4214, allocations: 156.3 kB / 0.5423 GB, free: 14.74 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.4217, allocations: 264.7 kB / 0.5425 GB, free: 14.57 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008212/0.4226, allocations: 0.5998 MB / 0.5431 GB, free: 14.14 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4226, allocations: 1.406 kB / 0.5431 GB, free: 14.14 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.974e-06/0.4226, allocations: 0 / 0.5431 GB, free: 14.14 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.126e-05/0.4226, allocations: 0 / 0.5431 GB, free: 14.14 MB / 398.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 104
 * Number of variables: 104
Notification: Performance of Generate backend data structure: time 0.001599/0.4242, allocations: 0.7213 MB / 0.5438 GB, free: 13.57 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4242, allocations: 9.562 kB / 0.5438 GB, free: 13.57 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.4243, allocations: 54.7 kB / 0.5439 GB, free: 13.54 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008551/0.4252, allocations: 396.7 kB / 0.5443 GB, free: 13.22 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.4253, allocations: 65.86 kB / 0.5443 GB, free: 13.17 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-05/0.4254, allocations: 43.42 kB / 0.5444 GB, free: 13.15 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009578/0.4264, allocations: 0.504 MB / 0.5449 GB, free: 12.8 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.4264, allocations: 4 kB / 0.5449 GB, free: 12.8 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.4264, allocations: 17.81 kB / 0.5449 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.4264, allocations: 11.34 kB / 0.5449 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007408/0.4272, allocations: 340 kB / 0.5452 GB, free: 12.62 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/0.4298, allocations: 1.909 MB / 0.5471 GB, free: 10.93 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.4303, allocations: 216.2 kB / 0.5473 GB, free: 10.77 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.4305, allocations: 93.47 kB / 0.5474 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.4305, allocations: 2.344 kB / 0.5474 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.4306, allocations: 40.78 kB / 0.5474 GB, free: 10.66 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=20): time 2.014e-06/0.4306, allocations: 0 / 0.5474 GB, free: 10.66 MB / 398.1 MB
Notification: Performance of matching and sorting (n=22): time 0.002016/0.4326, allocations: 0.774 MB / 0.5482 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.197e-05/0.4327, allocations: 114.4 kB / 0.5483 GB, free: 9.992 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004454/0.4331, allocations: 329.5 kB / 0.5486 GB, free: 9.77 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.4331, allocations: 31.61 kB / 0.5486 GB, free: 9.734 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.4334, allocations: 274.6 kB / 0.5489 GB, free: 9.484 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.124e-05/0.4334, allocations: 77.69 kB / 0.549 GB, free: 9.418 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.4336, allocations: 74.11 kB / 0.549 GB, free: 9.363 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001828/0.4337, allocations: 343.7 kB / 0.5494 GB, free: 9.027 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.434, allocations: 87.11 kB / 0.5495 GB, free: 8.984 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.4343, allocations: 214 kB / 0.5497 GB, free: 8.77 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.4357, allocations: 492.8 kB / 0.5501 GB, free: 8.418 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4358, allocations: 1.344 kB / 0.5501 GB, free: 8.418 MB / 398.1 MB
Notification: Performance of matching and sorting (n=42) (initialization): time 0.001102/0.4369, allocations: 428.2 kB / 0.5505 GB, free: 8.18 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.4369, allocations: 11.12 kB / 0.5505 GB, free: 8.176 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.4369, allocations: 4.688 kB / 0.5505 GB, free: 8.176 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/0.4373, allocations: 69.95 kB / 0.5506 GB, free: 8.145 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.4376, allocations: 67.16 kB / 0.5507 GB, free: 8.129 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/0.4403, allocations: 1.823 MB / 0.5525 GB, free: 6.438 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/0.4406, allocations: 12 kB / 0.5525 GB, free: 6.434 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.4406, allocations: 17.75 kB / 0.5525 GB, free: 6.43 MB / 398.1 MB
Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system:
         $DER.dcm_pm.rotor.w = 0.0.
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 20
 * Number of states: 0 ()
 * Number of discrete variables: 1 (system.initime)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (35):
 * Single equations (assignments): 34
 * 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
   {(1,7)}
Notification: Performance of prepare postOptimizeDAE: time 0.0004032/0.441, allocations: 195 kB / 0.5527 GB, free: 6.262 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.4412, allocations: 35.39 kB / 0.5527 GB, free: 6.242 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.4413, allocations: 49.33 kB / 0.5528 GB, free: 6.203 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4413, allocations: 7.375 kB / 0.5528 GB, free: 6.199 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.4413, allocations: 5.125 kB / 0.5528 GB, free: 6.195 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.4413, allocations: 1.188 kB / 0.5528 GB, free: 6.195 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.443, allocations: 0.7441 MB / 0.5535 GB, free: 5.586 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.443, allocations: 1.125 kB / 0.5535 GB, free: 5.586 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002846/0.4433, allocations: 53.31 kB / 0.5535 GB, free: 5.566 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.4434, allocations: 23.34 kB / 0.5536 GB, free: 5.551 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.4435, allocations: 2.156 kB / 0.5536 GB, free: 5.551 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.4447, allocations: 1.29 MB / 0.5548 GB, free: 4.23 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4447, allocations: 1.219 kB / 0.5548 GB, free: 4.23 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000903/0.4456, allocations: 0.5094 MB / 0.5553 GB, free: 3.844 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.4458, allocations: 39.05 kB / 0.5554 GB, free: 3.816 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.4458, allocations: 2.656 kB / 0.5554 GB, free: 3.816 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.446, allocations: 13.42 kB / 0.5554 GB, free: 3.809 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-05/0.4461, allocations: 21.53 kB / 0.5554 GB, free: 3.793 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.4461, allocations: 5.875 kB / 0.5554 GB, free: 3.793 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0004093/0.4465, allocations: 233 kB / 0.5556 GB, free: 3.641 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.4465, allocations: 0 / 0.5556 GB, free: 3.641 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0007072/0.4472, allocations: 87.09 kB / 0.5557 GB, free: 3.633 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 4
 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi)
 * Number of discrete variables: 1 (system.initime)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (21):
 * Single equations (assignments): 19
 * 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,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.0001907/0.4474, allocations: 105 kB / 0.5558 GB, free: 3.535 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.001036/0.4485, allocations: 362.6 kB / 0.5562 GB, free: 3.297 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4485, allocations: 0 / 0.5562 GB, free: 3.297 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0004197/0.4489, allocations: 209.9 kB / 0.5564 GB, free: 3.141 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007527/0.4496, allocations: 106.7 kB / 0.5565 GB, free: 3.09 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.4519, allocations: 0.9434 MB / 0.5574 GB, free: 2.297 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006655/0.4526, allocations: 0.8387 MB / 0.5582 GB, free: 1.434 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002237/0.4528, allocations: 51.27 kB / 0.5583 GB, free: 1.387 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.732e-05/0.4529, allocations: 27.44 kB / 0.5583 GB, free: 1.359 MB / 398.1 MB
Notification: Performance of SimCode: time 1.172e-06/0.4529, allocations: 0 / 0.5583 GB, free: 1.359 MB / 398.1 MB
Notification: Performance of Templates: time 0.0136/0.4665, allocations: 4.836 MB / 0.563 GB, free: 12.58 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660]
(rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.481285966932774]
Failed to read output from testmodel.py, exit status != 0:
0.4776822328567505 0.49327001899999995 0.067115958
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7feb126317b0>