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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 111.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 214.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.642/1.642, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1903/0.1903, allocations: 38.56 MB / 352.5 MB, free: 12.36 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 67.89 kB / 493 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4243/0.4271, allocations: 62.47 MB / 0.5424 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.009093/0.4362, allocations: 5.093 MB / 0.5474 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.4397, allocations: 1.495 MB / 0.5489 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000613/0.4403, allocations: 23.47 kB / 0.5489 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.4409, allocations: 117.4 kB / 0.549 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001328/0.4422, allocations: 327.2 kB / 0.5493 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000652/0.4429, allocations: 158.4 kB / 0.5495 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.4443, allocations: 0.6901 MB / 0.5501 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006411/0.445, allocations: 331.2 kB / 0.5504 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008374/0.4458, allocations: 304.1 kB / 0.5507 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007673/0.4466, allocations: 274.3 kB / 0.551 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.4467, allocations: 46 kB / 0.551 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002541/0.447, allocations: 49.91 kB / 0.5511 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.4472, allocations: 157.1 kB / 0.5512 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005279/0.4478, allocations: 216.9 kB / 0.5514 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009689/0.4487, allocations: 0.6002 MB / 0.552 GB, free: 9.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4487, allocations: 1 kB / 0.552 GB, free: 9.277 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4487, allocations: 0 / 0.552 GB, free: 9.277 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.4488, allocations: 4 kB / 0.552 GB, free: 9.273 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.002025/0.4508, allocations: 0.7181 MB / 0.5527 GB, free: 8.703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.4508, allocations: 12.77 kB / 0.5528 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.451, allocations: 59.69 kB / 0.5528 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.452, allocations: 396.3 kB / 0.5532 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.4522, allocations: 92 kB / 0.5533 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.675e-05/0.4523, allocations: 51.77 kB / 0.5533 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.4534, allocations: 0.4971 MB / 0.5538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.4534, allocations: 1.375 kB / 0.5538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.4534, allocations: 20.31 kB / 0.5538 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.4535, allocations: 10.91 kB / 0.5538 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008651/0.4543, allocations: 345.3 kB / 0.5542 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.4573, allocations: 1.736 MB / 0.5559 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005238/0.4578, allocations: 212.1 kB / 0.5561 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.458, allocations: 90.66 kB / 0.5562 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.4581, allocations: 4 kB / 0.5562 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.4581, allocations: 42.55 kB / 0.5562 GB, free: 5.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.334e-06/0.4581, allocations: 0 / 0.5562 GB, free: 5.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.002301/0.4604, allocations: 0.7742 MB / 0.557 GB, free: 5.062 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.4605, allocations: 106.8 kB / 0.5571 GB, free: 4.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005429/0.4611, allocations: 316.3 kB / 0.5574 GB, free: 4.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.4611, allocations: 29.7 kB / 0.5574 GB, free: 4.578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/0.4614, allocations: 268.2 kB / 0.5576 GB, free: 4.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9e-05/0.4615, allocations: 87.25 kB / 0.5577 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.4617, allocations: 73.64 kB / 0.5578 GB, free: 4.148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003237/0.462, allocations: 338.8 kB / 0.5581 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.4622, allocations: 83.73 kB / 0.5582 GB, free: 3.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003295/0.4625, allocations: 229.1 kB / 0.5584 GB, free: 3.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.4638, allocations: 494.7 kB / 0.5589 GB, free: 2.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.4638, allocations: 0 / 0.5589 GB, free: 2.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008887/0.4647, allocations: 413.5 kB / 0.5593 GB, free: 2.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4647, allocations: 8.531 kB / 0.5593 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4647, allocations: 11.94 kB / 0.5593 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003978/0.4651, allocations: 76.8 kB / 0.5594 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.4654, allocations: 63.91 kB / 0.5594 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.468, allocations: 1.793 MB / 0.5612 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.4682, allocations: 12 kB / 0.5612 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.4683, allocations: 16.16 kB / 0.5612 GB, free: 416 kB / 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.0003683/0.4686, allocations: 201.1 kB / 0.5614 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.4687, allocations: 35.77 kB / 0.5614 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.53e-05/0.4688, allocations: 39.11 kB / 0.5615 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4688, allocations: 0 / 0.5615 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4688, allocations: 7.938 kB / 0.5615 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4688, allocations: 4 kB / 0.5615 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.4705, allocations: 0.6167 MB / 0.5621 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4705, allocations: 0 / 0.5621 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.4708, allocations: 39.97 kB / 0.5621 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.4709, allocations: 32.78 kB / 0.5622 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.4709, allocations: 12.03 kB / 0.5622 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.4722, allocations: 1.248 MB / 0.5634 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.4722, allocations: 7.875 kB / 0.5634 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008296/0.4731, allocations: 0.4892 MB / 0.5639 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.4732, allocations: 44 kB / 0.5639 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.4732, allocations: 7.938 kB / 0.5639 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.4734, allocations: 11.98 kB / 0.5639 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.4735, allocations: 23.91 kB / 0.564 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.4735, allocations: 4 kB / 0.564 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.4738, allocations: 211 kB / 0.5642 GB, free: 13.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4738, allocations: 0 / 0.5642 GB, free: 13.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005507/0.4743, allocations: 88 kB / 0.5642 GB, free: 13.12 MB / 414.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.0001419/0.4745, allocations: 99.25 kB / 0.5643 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008885/0.4753, allocations: 367.2 kB / 0.5647 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.4753, allocations: 0 / 0.5647 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000391/0.4757, allocations: 217 kB / 0.5649 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006769/0.4764, allocations: 94.23 kB / 0.565 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.4785, allocations: 0.9371 MB / 0.5659 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.4788, allocations: 243.7 kB / 0.5661 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002013/0.479, allocations: 47.27 kB / 0.5662 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.81e-05/0.4791, allocations: 31.44 kB / 0.5662 GB, free: 11.02 MB / 414.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4791, allocations: 3.938 kB / 0.5662 GB, free: 11.01 MB / 414.1 MB Notification: Performance of Templates: time 0.01106/0.4902, allocations: 4.603 MB / 0.5707 GB, free: 6.488 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.63008257932961]