Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001466/0.001466, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001522/0.001522, allocations: 202.9 kB / 23.73 MB, free: 4.379 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.214/0.214, allocations: 38.55 MB / 352.5 MB, free: 12.28 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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.002233/0.002233, allocations: 71.88 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3252, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007661/0.3329, allocations: 5.048 MB / 0.5469 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003582/0.3365, allocations: 1.995 MB / 0.5488 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/0.3368, allocations: 17.59 kB / 0.5488 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005685/0.3374, allocations: 151.5 kB / 0.549 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.3384, allocations: 395.5 kB / 0.5494 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.339, allocations: 222.6 kB / 0.5496 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008975/0.3399, allocations: 0.7056 MB / 0.5503 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004498/0.3403, allocations: 338.7 kB / 0.5506 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005252/0.3408, allocations: 317.3 kB / 0.5509 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000425/0.3413, allocations: 297.8 kB / 0.5512 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.503e-05/0.3413, allocations: 52.19 kB / 0.5512 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.3416, allocations: 143.3 kB / 0.5514 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.3418, allocations: 153.2 kB / 0.5515 GB, free: 9.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.342, allocations: 218 kB / 0.5517 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009763/0.343, allocations: 0.7056 MB / 0.5524 GB, free: 8.457 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.343, allocations: 8 kB / 0.5524 GB, free: 8.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.343, allocations: 1.125 kB / 0.5524 GB, free: 8.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.343, allocations: 0 / 0.5524 GB, free: 8.449 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001718/0.3448, allocations: 0.8061 MB / 0.5532 GB, free: 7.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.3448, allocations: 13.83 kB / 0.5532 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.799e-05/0.3449, allocations: 74.66 kB / 0.5533 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.345, allocations: 60.08 kB / 0.5533 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008802/0.3459, allocations: 424.1 kB / 0.5537 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.3459, allocations: 32.2 kB / 0.5538 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.346, allocations: 41.11 kB / 0.5538 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.3468, allocations: 486.7 kB / 0.5543 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.3468, allocations: 0.9062 kB / 0.5543 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.442e-05/0.3468, allocations: 16.16 kB / 0.5543 GB, free: 6.953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.3468, allocations: 13.22 kB / 0.5543 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.3473, allocations: 274.9 kB / 0.5546 GB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.3498, allocations: 1.702 MB / 0.5562 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005734/0.3504, allocations: 241.2 kB / 0.5565 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.3505, allocations: 82.97 kB / 0.5565 GB, free: 5.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.975e-05/0.3505, allocations: 15.81 kB / 0.5566 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.3509, allocations: 164.7 kB / 0.5567 GB, free: 4.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.3509, allocations: 0 / 0.5567 GB, free: 4.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.00182/0.3527, allocations: 0.8557 MB / 0.5575 GB, free: 3.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.74e-05/0.3528, allocations: 132.8 kB / 0.5577 GB, free: 3.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005195/0.3533, allocations: 433.8 kB / 0.5581 GB, free: 3.344 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.3533, allocations: 29.7 kB / 0.5581 GB, free: 3.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.3535, allocations: 276.2 kB / 0.5584 GB, free: 3.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.3536, allocations: 95.17 kB / 0.5585 GB, free: 2.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.3537, allocations: 69.66 kB / 0.5585 GB, free: 2.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3539, allocations: 354.8 kB / 0.5589 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.3541, allocations: 83.95 kB / 0.559 GB, free: 2.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.3544, allocations: 237.9 kB / 0.5592 GB, free: 2.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.3548, allocations: 323.7 kB / 0.5595 GB, free: 1.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3548, allocations: 4 kB / 0.5595 GB, free: 1.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008599/0.3557, allocations: 429.7 kB / 0.5599 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3557, allocations: 8 kB / 0.5599 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3557, allocations: 7.984 kB / 0.5599 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.3561, allocations: 88.78 kB / 0.56 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.3563, allocations: 64.28 kB / 0.5601 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.3588, allocations: 1.899 MB / 0.5619 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.3591, allocations: 27.92 kB / 0.5619 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.3591, allocations: 23.94 kB / 0.562 GB, free: 15.1 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002332/0.3593, allocations: 189.7 kB / 0.5621 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.3594, allocations: 47.7 kB / 0.5622 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006146/0.36, allocations: 302.1 kB / 0.5625 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.36, allocations: 4 kB / 0.5625 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.36, allocations: 3.938 kB / 0.5625 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.36, allocations: 3.984 kB / 0.5625 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.3611, allocations: 0.7098 MB / 0.5632 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3611, allocations: 4 kB / 0.5632 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.3614, allocations: 39.92 kB / 0.5632 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000203/0.3616, allocations: 52.81 kB / 0.5633 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.3616, allocations: 11.98 kB / 0.5633 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.363, allocations: 1.428 MB / 0.5647 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.363, allocations: 4.031 kB / 0.5647 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.3638, allocations: 0.4909 MB / 0.5652 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.3639, allocations: 63.8 kB / 0.5652 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.364, allocations: 4 kB / 0.5652 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.3642, allocations: 15.98 kB / 0.5652 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.3642, allocations: 24.19 kB / 0.5653 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.3643, allocations: 11.94 kB / 0.5653 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000341/0.3646, allocations: 291.1 kB / 0.5656 GB, free: 11.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3646, allocations: 0 / 0.5656 GB, free: 11.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005605/0.3652, allocations: 123.9 kB / 0.5657 GB, free: 11.08 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002694/0.3679, allocations: 1.42 MB / 0.5671 GB, free: 9.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000907/0.3688, allocations: 391 kB / 0.5674 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3688, allocations: 0 / 0.5674 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.3692, allocations: 246.9 kB / 0.5677 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007381/0.3699, allocations: 123.7 kB / 0.5678 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00585/0.3758, allocations: 4.096 MB / 0.5718 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3761, allocations: 251.9 kB / 0.572 GB, free: 4.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.3763, allocations: 67.36 kB / 0.5721 GB, free: 4.402 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.3765, allocations: 163.4 kB / 0.5722 GB, free: 4.242 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3765, allocations: 0 / 0.5722 GB, free: 4.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04877/0.4253, allocations: 12.6 MB / 0.5846 GB, free: 7.785 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.95, allocations: 10.12 kB / 0.5846 GB, free: 7.781 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.020098397973925] Failed to read output from testmodel.py, exit status != 0: 14.143557437986601 14.173483851 13.824379387 Calling exit ...