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.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.001385/0.001385, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00152/0.00152, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1838/0.1838, allocations: 38.52 MB / 352.4 MB, free: 12.53 MB / 286.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/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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_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.002098/0.002098, allocations: 66.88 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3534, allocations: 62.48 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007684/0.3611, allocations: 5.437 MB / 0.5473 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003047/0.3641, allocations: 1.625 MB / 0.5489 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003657/0.3645, allocations: 27.59 kB / 0.5489 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004414/0.3649, allocations: 120.8 kB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008694/0.3658, allocations: 324.1 kB / 0.5493 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004392/0.3663, allocations: 157.6 kB / 0.5495 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009448/0.3672, allocations: 0.7015 MB / 0.5502 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004552/0.3677, allocations: 331.7 kB / 0.5505 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000434/0.3681, allocations: 308 kB / 0.5508 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.3685, allocations: 297.7 kB / 0.5511 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-05/0.3686, allocations: 50.25 kB / 0.5511 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.731e-05/0.3687, allocations: 46.38 kB / 0.5512 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.3689, allocations: 148.8 kB / 0.5513 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.3691, allocations: 269.1 kB / 0.5516 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007114/0.3698, allocations: 0.5992 MB / 0.5522 GB, free: 8.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3698, allocations: 0 / 0.5522 GB, free: 8.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3698, allocations: 0 / 0.5522 GB, free: 8.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3699, allocations: 5.062 kB / 0.5522 GB, free: 8.668 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.001497/0.3714, allocations: 0.7228 MB / 0.5529 GB, free: 8.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3714, allocations: 13.58 kB / 0.5529 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.3715, allocations: 77.44 kB / 0.5529 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.3716, allocations: 63.94 kB / 0.553 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008543/0.3725, allocations: 406.7 kB / 0.5534 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.3726, allocations: 88.34 kB / 0.5535 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-05/0.3727, allocations: 40.72 kB / 0.5535 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009204/0.3736, allocations: 0.5019 MB / 0.554 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.3736, allocations: 5.094 kB / 0.554 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.178e-05/0.3737, allocations: 20.56 kB / 0.554 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3737, allocations: 11.38 kB / 0.554 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006826/0.3744, allocations: 345.3 kB / 0.5544 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.377, allocations: 1.89 MB / 0.5562 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004443/0.3774, allocations: 211.6 kB / 0.5564 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.3776, allocations: 90.66 kB / 0.5565 GB, free: 5.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3776, allocations: 6.75 kB / 0.5565 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.3777, allocations: 37.03 kB / 0.5566 GB, free: 5.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.3777, allocations: 0 / 0.5566 GB, free: 5.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001776/0.3795, allocations: 0.7836 MB / 0.5573 GB, free: 4.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.3795, allocations: 110.7 kB / 0.5574 GB, free: 4.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.3799, allocations: 333.7 kB / 0.5577 GB, free: 4.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.3799, allocations: 29.7 kB / 0.5578 GB, free: 3.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.3802, allocations: 280.2 kB / 0.558 GB, free: 3.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.912e-05/0.3802, allocations: 71.38 kB / 0.5581 GB, free: 3.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3804, allocations: 73.64 kB / 0.5582 GB, free: 3.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.3805, allocations: 346.9 kB / 0.5585 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.3808, allocations: 87.73 kB / 0.5586 GB, free: 3.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.3811, allocations: 213.1 kB / 0.5588 GB, free: 2.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.3822, allocations: 495.4 kB / 0.5593 GB, free: 2.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3823, allocations: 0 / 0.5593 GB, free: 2.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008788/0.3831, allocations: 422 kB / 0.5597 GB, free: 1.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3832, allocations: 8 kB / 0.5597 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3832, allocations: 4 kB / 0.5597 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/0.3835, allocations: 68.8 kB / 0.5597 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.3838, allocations: 71.84 kB / 0.5598 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.386, allocations: 1.829 MB / 0.5616 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.3863, allocations: 12 kB / 0.5616 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.3863, allocations: 16 kB / 0.5616 GB, free: 15.77 MB / 414.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.0003002/0.3866, allocations: 197.6 kB / 0.5618 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.369e-05/0.3867, allocations: 39.7 kB / 0.5619 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.006e-05/0.3868, allocations: 51.3 kB / 0.5619 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.3868, allocations: 8.047 kB / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3868, allocations: 4 kB / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3868, allocations: 0 / 0.5619 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/0.3881, allocations: 0.7434 MB / 0.5626 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3881, allocations: 4.031 kB / 0.5626 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.3884, allocations: 47.91 kB / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.911e-05/0.3885, allocations: 24.84 kB / 0.5627 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.3885, allocations: 4 kB / 0.5627 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3895, allocations: 1.279 MB / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3895, allocations: 0 / 0.564 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008126/0.3903, allocations: 0.5116 MB / 0.5645 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.3904, allocations: 43.75 kB / 0.5645 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.3905, allocations: 0 / 0.5645 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.3907, allocations: 11.98 kB / 0.5645 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.3907, allocations: 23.97 kB / 0.5645 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3908, allocations: 4 kB / 0.5645 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002701/0.391, allocations: 235.2 kB / 0.5648 GB, free: 12.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.391, allocations: 0 / 0.5648 GB, free: 12.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005552/0.3916, allocations: 87.94 kB / 0.5649 GB, free: 12.25 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.001149/0.3927, allocations: 1.038 MB / 0.5659 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008837/0.3936, allocations: 370.7 kB / 0.5662 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3936, allocations: 1.188 kB / 0.5662 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.394, allocations: 210.6 kB / 0.5664 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007471/0.3947, allocations: 106.8 kB / 0.5665 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006041/0.4008, allocations: 3.704 MB / 0.5701 GB, free: 6.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.4014, allocations: 0.8465 MB / 0.571 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000218/0.4016, allocations: 51.25 kB / 0.571 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.4018, allocations: 139.4 kB / 0.5711 GB, free: 5.496 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4018, allocations: 0 / 0.5711 GB, free: 5.496 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05463/0.4564, allocations: 8.833 MB / 0.5798 GB, free: 12.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.75, allocations: 8.5 kB / 0.5798 GB, free: 12.82 MB / 430.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.697248912998475] Failed to read output from testmodel.py, exit status != 0: 13.873982856996008 13.890526188 13.517254975 Calling exit ...