Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.00153/0.00153, allocations: 108 kB / 20.43 MB, free: 1.473 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.001611/0.001611, allocations: 185.7 kB / 23.71 MB, free: 4.711 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.428/1.428, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.179/0.179, allocations: 38.54 MB / 346.3 MB, free: 2.148 MB / 270.1 MB
"
[Timeout remaining time 180]
Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm")
translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 67.89 kB / 484.5 MB, free: 11.17 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.409, allocations: 61.29 MB / 0.533 GB, free: 5.59 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006887/0.4159, allocations: 5.428 MB / 0.5383 GB, free: 1.668 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00236/0.4182, allocations: 1.588 MB / 0.5399 GB, free: 396 kB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002972/0.4185, allocations: 24.19 kB / 0.5399 GB, free: 384 kB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003913/0.4189, allocations: 129 kB / 0.54 GB, free: 276 kB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007125/0.4196, allocations: 324 kB / 0.5403 GB, free: 12 kB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.4201, allocations: 153.7 kB / 0.5405 GB, free: 15.88 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009394/0.4211, allocations: 0.6944 MB / 0.5412 GB, free: 15.48 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004957/0.4216, allocations: 339.3 kB / 0.5415 GB, free: 15.25 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/0.422, allocations: 301 kB / 0.5418 GB, free: 15.08 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.4224, allocations: 293.5 kB / 0.5421 GB, free: 14.9 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.698e-05/0.4225, allocations: 45.94 kB / 0.5421 GB, free: 14.9 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.902e-05/0.4226, allocations: 47.66 kB / 0.5421 GB, free: 14.9 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.4228, allocations: 151.1 kB / 0.5423 GB, free: 14.79 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002895/0.4231, allocations: 276.8 kB / 0.5426 GB, free: 14.61 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000739/0.4238, allocations: 0.5921 MB / 0.5431 GB, free: 14.18 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4238, allocations: 0 / 0.5431 GB, free: 14.18 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.433e-06/0.4238, allocations: 5.25 kB / 0.5431 GB, free: 14.18 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.008e-05/0.4238, allocations: 0 / 0.5431 GB, free: 14.18 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.001492/0.4253, allocations: 0.7248 MB / 0.5438 GB, free: 13.6 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4254, allocations: 9.812 kB / 0.5439 GB, free: 13.6 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.4255, allocations: 62.78 kB / 0.5439 GB, free: 13.57 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007828/0.4263, allocations: 380 kB / 0.5443 GB, free: 13.27 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.4264, allocations: 61.86 kB / 0.5443 GB, free: 13.21 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-05/0.4265, allocations: 52.17 kB / 0.5444 GB, free: 13.19 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008846/0.4273, allocations: 0.4989 MB / 0.5449 GB, free: 12.84 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.4274, allocations: 0.9375 kB / 0.5449 GB, free: 12.84 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/0.4274, allocations: 20.22 kB / 0.5449 GB, free: 12.83 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4274, allocations: 11.06 kB / 0.5449 GB, free: 12.83 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006761/0.4281, allocations: 346.6 kB / 0.5452 GB, free: 12.66 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.4307, allocations: 1.913 MB / 0.5471 GB, free: 10.96 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004758/0.4312, allocations: 213.1 kB / 0.5473 GB, free: 10.81 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.4314, allocations: 91.22 kB / 0.5474 GB, free: 10.75 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.4314, allocations: 2.375 kB / 0.5474 GB, free: 10.75 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.4315, allocations: 40.75 kB / 0.5474 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=20): time 2.615e-06/0.4315, allocations: 0 / 0.5474 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of matching and sorting (n=22): time 0.001861/0.4333, allocations: 0.7777 MB / 0.5482 GB, free: 10.16 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.4e-05/0.4334, allocations: 106.6 kB / 0.5483 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.4338, allocations: 329.7 kB / 0.5486 GB, free: 9.816 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.4338, allocations: 34.86 kB / 0.5486 GB, free: 9.777 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.434, allocations: 275.1 kB / 0.5489 GB, free: 9.527 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.531e-05/0.4341, allocations: 88.88 kB / 0.549 GB, free: 9.449 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.4342, allocations: 67.19 kB / 0.5491 GB, free: 9.402 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001653/0.4344, allocations: 349.8 kB / 0.5494 GB, free: 9.059 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.4346, allocations: 80.42 kB / 0.5495 GB, free: 9.023 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.4349, allocations: 214.6 kB / 0.5497 GB, free: 8.809 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.4362, allocations: 496.5 kB / 0.5501 GB, free: 8.453 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4362, allocations: 1.125 kB / 0.5501 GB, free: 8.453 MB / 398.1 MB
Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009183/0.4371, allocations: 413.6 kB / 0.5505 GB, free: 8.227 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.4371, allocations: 6.844 kB / 0.5505 GB, free: 8.227 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.4372, allocations: 4.156 kB / 0.5505 GB, free: 8.227 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003674/0.4375, allocations: 74.23 kB / 0.5506 GB, free: 8.191 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.4378, allocations: 70.53 kB / 0.5507 GB, free: 8.172 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.4399, allocations: 1.827 MB / 0.5525 GB, free: 6.477 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.4402, allocations: 13.41 kB / 0.5525 GB, free: 6.473 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.4402, allocations: 16.66 kB / 0.5525 GB, free: 6.469 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.0003/0.4405, allocations: 194.1 kB / 0.5527 GB, free: 6.301 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.611e-05/0.4406, allocations: 40.22 kB / 0.5527 GB, free: 6.277 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.128e-05/0.4407, allocations: 49.75 kB / 0.5528 GB, free: 6.238 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4407, allocations: 2.219 kB / 0.5528 GB, free: 6.238 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4407, allocations: 1.438 kB / 0.5528 GB, free: 6.238 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4407, allocations: 4.938 kB / 0.5528 GB, free: 6.234 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.442, allocations: 0.7411 MB / 0.5535 GB, free: 5.629 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.442, allocations: 1.188 kB / 0.5535 GB, free: 5.629 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.4423, allocations: 53.34 kB / 0.5536 GB, free: 5.609 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.97e-05/0.4424, allocations: 19.2 kB / 0.5536 GB, free: 5.598 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.4424, allocations: 2.469 kB / 0.5536 GB, free: 5.598 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.4435, allocations: 1.29 MB / 0.5548 GB, free: 4.277 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4435, allocations: 1.062 kB / 0.5548 GB, free: 4.277 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.4443, allocations: 0.5086 MB / 0.5553 GB, free: 3.895 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.4444, allocations: 39.62 kB / 0.5554 GB, free: 3.867 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.238e-05/0.4445, allocations: 6.125 kB / 0.5554 GB, free: 3.863 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.4447, allocations: 12.33 kB / 0.5554 GB, free: 3.855 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.4447, allocations: 22.66 kB / 0.5554 GB, free: 3.84 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.4447, allocations: 5.844 kB / 0.5554 GB, free: 3.84 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.000268/0.445, allocations: 229.3 kB / 0.5556 GB, free: 3.691 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.445, allocations: 0 / 0.5556 GB, free: 3.691 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0005856/0.4456, allocations: 90.62 kB / 0.5557 GB, free: 3.68 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.0001258/0.4457, allocations: 108.8 kB / 0.5558 GB, free: 3.578 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008057/0.4465, allocations: 359.4 kB / 0.5562 GB, free: 3.344 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4465, allocations: 1.188 kB / 0.5562 GB, free: 3.344 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003744/0.4469, allocations: 217.4 kB / 0.5564 GB, free: 3.18 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006885/0.4476, allocations: 98.92 kB / 0.5565 GB, free: 3.137 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.4494, allocations: 0.9526 MB / 0.5574 GB, free: 2.336 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.4499, allocations: 0.8387 MB / 0.5582 GB, free: 1.473 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0001909/0.4501, allocations: 51.25 kB / 0.5583 GB, free: 1.426 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.4502, allocations: 27.44 kB / 0.5583 GB, free: 1.398 MB / 398.1 MB
Notification: Performance of SimCode: time 7.51e-07/0.4502, allocations: 0 / 0.5583 GB, free: 1.398 MB / 398.1 MB
Notification: Performance of Templates: time 0.01062/0.4608, allocations: 4.831 MB / 0.563 GB, free: 12.62 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660]
(rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480]
diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.2073923368006945]