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.001735/0.001735, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001455/0.001455, allocations: 212.4 kB / 23.73 MB, free: 4.16 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.1883/0.1883, allocations: 38.56 MB / 352.5 MB, free: 12.31 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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [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.002168/0.002168, allocations: 67.89 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3368, allocations: 62.47 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.01002/0.3468, allocations: 5.099 MB / 0.5469 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00504/0.3518, allocations: 1.489 MB / 0.5484 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.3523, allocations: 27.47 kB / 0.5484 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005977/0.3529, allocations: 117.7 kB / 0.5485 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.3542, allocations: 323.2 kB / 0.5488 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.3548, allocations: 158.2 kB / 0.549 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001266/0.3561, allocations: 0.6936 MB / 0.5496 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006937/0.3568, allocations: 331.7 kB / 0.55 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006598/0.3574, allocations: 305 kB / 0.5503 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006319/0.3581, allocations: 277.3 kB / 0.5505 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.83e-05/0.3582, allocations: 45.38 kB / 0.5506 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.3583, allocations: 47.5 kB / 0.5506 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.3586, allocations: 155.3 kB / 0.5508 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003453/0.3589, allocations: 221.4 kB / 0.551 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009908/0.3599, allocations: 0.5975 MB / 0.5515 GB, free: 9.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.3599, allocations: 0 / 0.5515 GB, free: 9.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.438e-06/0.3599, allocations: 7.984 kB / 0.5516 GB, free: 9.086 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.3599, allocations: 0 / 0.5516 GB, free: 9.086 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.001907/0.3618, allocations: 0.7141 MB / 0.5523 GB, free: 8.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.3619, allocations: 18.22 kB / 0.5523 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.362, allocations: 80.41 kB / 0.5523 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3622, allocations: 59.53 kB / 0.5524 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009637/0.3632, allocations: 403.4 kB / 0.5528 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.3633, allocations: 84.81 kB / 0.5529 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.391e-05/0.3634, allocations: 44.25 kB / 0.5529 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008539/0.3642, allocations: 0.4969 MB / 0.5534 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.3642, allocations: 1.062 kB / 0.5534 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.3643, allocations: 20.38 kB / 0.5534 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.3643, allocations: 18.92 kB / 0.5534 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006508/0.365, allocations: 345.5 kB / 0.5538 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.3675, allocations: 1.8 MB / 0.5555 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004449/0.3679, allocations: 211.6 kB / 0.5557 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.3681, allocations: 89.84 kB / 0.5558 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.3681, allocations: 3.656 kB / 0.5558 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/0.3682, allocations: 37.8 kB / 0.5559 GB, free: 5.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.154e-06/0.3682, allocations: 0 / 0.5559 GB, free: 5.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001751/0.3699, allocations: 0.7941 MB / 0.5566 GB, free: 4.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.941e-05/0.37, allocations: 102.8 kB / 0.5567 GB, free: 4.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.3704, allocations: 341.6 kB / 0.557 GB, free: 4.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3704, allocations: 29.7 kB / 0.5571 GB, free: 4.402 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.3706, allocations: 268.2 kB / 0.5573 GB, free: 4.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.132e-05/0.3707, allocations: 83.27 kB / 0.5574 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.927e-05/0.3708, allocations: 69.66 kB / 0.5575 GB, free: 3.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.371, allocations: 346.8 kB / 0.5578 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.3712, allocations: 87.8 kB / 0.5579 GB, free: 3.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.3715, allocations: 221 kB / 0.5581 GB, free: 3.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3727, allocations: 493.8 kB / 0.5586 GB, free: 2.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3727, allocations: 4 kB / 0.5586 GB, free: 2.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008685/0.3735, allocations: 414 kB / 0.559 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3736, allocations: 8.062 kB / 0.559 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3736, allocations: 8 kB / 0.559 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003341/0.3739, allocations: 76.8 kB / 0.5591 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.3742, allocations: 63.91 kB / 0.5591 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/0.3769, allocations: 1.812 MB / 0.5609 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.3773, allocations: 19.94 kB / 0.5609 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.3773, allocations: 16.16 kB / 0.5609 GB, free: 204 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.0003524/0.3777, allocations: 192.7 kB / 0.5611 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.3778, allocations: 39.75 kB / 0.5611 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.407e-05/0.3779, allocations: 35.25 kB / 0.5612 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3779, allocations: 8.062 kB / 0.5612 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.3779, allocations: 4.062 kB / 0.5612 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.3779, allocations: 3.984 kB / 0.5612 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.3795, allocations: 0.6774 MB / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3795, allocations: 0 / 0.5619 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.3799, allocations: 43.97 kB / 0.5619 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.38, allocations: 32.77 kB / 0.5619 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.38, allocations: 11.98 kB / 0.5619 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.3811, allocations: 1.279 MB / 0.5632 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3811, allocations: 3.938 kB / 0.5632 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008146/0.3819, allocations: 0.4999 MB / 0.5637 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.382, allocations: 43.83 kB / 0.5637 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.3821, allocations: 8 kB / 0.5637 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.3822, allocations: 4 kB / 0.5637 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/0.3823, allocations: 27.89 kB / 0.5638 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3823, allocations: 8 kB / 0.5638 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002369/0.3826, allocations: 239 kB / 0.564 GB, free: 12.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3826, allocations: 0 / 0.564 GB, free: 12.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.3831, allocations: 84 kB / 0.5641 GB, free: 12.77 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.001063/0.3841, allocations: 1.042 MB / 0.5651 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007355/0.3849, allocations: 365.4 kB / 0.5654 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3849, allocations: 0 / 0.5654 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.3852, allocations: 210.6 kB / 0.5656 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.3859, allocations: 109 kB / 0.5658 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005121/0.391, allocations: 3.702 MB / 0.5694 GB, free: 7.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.3912, allocations: 247.7 kB / 0.5696 GB, free: 6.812 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000163/0.3914, allocations: 47.27 kB / 0.5696 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.3916, allocations: 139.4 kB / 0.5698 GB, free: 6.633 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3916, allocations: 0 / 0.5698 GB, free: 6.633 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/0.4359, allocations: 9.298 MB / 0.5789 GB, free: 13.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.72, allocations: 7.062 kB / 0.5789 GB, free: 13.55 MB / 430.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/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] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable efficiency.eta in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable efficiency.eta from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.649508085101843]