Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001561/0.001561, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002409/0.002409, allocations: 212.1 kB / 23.73 MB, free: 4.387 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.476/1.476, 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.1891/0.1891, allocations: 38.54 MB / 352.5 MB, free: 12.34 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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_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.002979/0.002979, allocations: 67.91 kB / 492.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3686, allocations: 62.46 MB / 0.5419 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008238/0.3768, allocations: 5.052 MB / 0.5469 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004057/0.3809, allocations: 2.002 MB / 0.5488 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004342/0.3813, allocations: 22.19 kB / 0.5488 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.3819, allocations: 142.5 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.3831, allocations: 400.4 kB / 0.5494 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006063/0.3837, allocations: 218.9 kB / 0.5496 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.3847, allocations: 0.7099 MB / 0.5503 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.3852, allocations: 334 kB / 0.5506 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.3857, allocations: 309.1 kB / 0.5509 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.3862, allocations: 282.7 kB / 0.5511 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.798e-05/0.3863, allocations: 47.66 kB / 0.5512 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.3865, allocations: 144.1 kB / 0.5513 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.3867, allocations: 156.3 kB / 0.5515 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002518/0.387, allocations: 218.5 kB / 0.5517 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009282/0.3879, allocations: 0.7083 MB / 0.5524 GB, free: 8.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3879, allocations: 1.188 kB / 0.5524 GB, free: 8.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3879, allocations: 0 / 0.5524 GB, free: 8.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.3879, allocations: 0 / 0.5524 GB, free: 8.52 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.001678/0.3896, allocations: 0.8064 MB / 0.5532 GB, free: 7.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3896, allocations: 13.11 kB / 0.5532 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.695e-05/0.3897, allocations: 71.91 kB / 0.5532 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.3898, allocations: 55.73 kB / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008405/0.3907, allocations: 427.8 kB / 0.5537 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.3907, allocations: 32.33 kB / 0.5537 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.3908, allocations: 40.53 kB / 0.5538 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007621/0.3916, allocations: 483 kB / 0.5542 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.3916, allocations: 9.062 kB / 0.5542 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.3916, allocations: 16.2 kB / 0.5543 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.3916, allocations: 13.84 kB / 0.5543 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.3921, allocations: 278 kB / 0.5545 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.3945, allocations: 1.707 MB / 0.5562 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005758/0.3951, allocations: 237.1 kB / 0.5564 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.3953, allocations: 84.66 kB / 0.5565 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.3953, allocations: 7.938 kB / 0.5565 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003121/0.3956, allocations: 168.7 kB / 0.5567 GB, free: 4.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.3956, allocations: 0 / 0.5567 GB, free: 4.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.00188/0.3975, allocations: 0.8537 MB / 0.5575 GB, free: 4.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.693e-05/0.3976, allocations: 136.5 kB / 0.5576 GB, free: 3.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.3981, allocations: 421.8 kB / 0.558 GB, free: 3.457 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.3982, allocations: 33.7 kB / 0.5581 GB, free: 3.418 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.3984, allocations: 276.1 kB / 0.5583 GB, free: 3.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.111e-05/0.3985, allocations: 99.36 kB / 0.5584 GB, free: 3.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3986, allocations: 65.66 kB / 0.5585 GB, free: 2.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.3988, allocations: 354.8 kB / 0.5588 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3989, allocations: 88.11 kB / 0.5589 GB, free: 2.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.3992, allocations: 237.9 kB / 0.5592 GB, free: 2.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/0.3997, allocations: 319.1 kB / 0.5595 GB, free: 1.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3997, allocations: 0 / 0.5595 GB, free: 1.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008894/0.4006, allocations: 429.5 kB / 0.5599 GB, free: 1.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4006, allocations: 8 kB / 0.5599 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.4006, allocations: 7.984 kB / 0.5599 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004319/0.401, allocations: 89.31 kB / 0.56 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.4013, allocations: 71.84 kB / 0.56 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/0.4039, allocations: 1.895 MB / 0.5619 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.4042, allocations: 19.98 kB / 0.5619 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.4042, allocations: 23.94 kB / 0.5619 GB, free: 15.21 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.0002661/0.4045, allocations: 205.6 kB / 0.5621 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.413e-05/0.4046, allocations: 43.72 kB / 0.5622 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/0.4052, allocations: 302 kB / 0.5625 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4052, allocations: 0 / 0.5625 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4052, allocations: 4 kB / 0.5625 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4052, allocations: 3.984 kB / 0.5625 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.4064, allocations: 0.706 MB / 0.5632 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4064, allocations: 4 kB / 0.5632 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.4067, allocations: 43.98 kB / 0.5632 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.4069, allocations: 52.75 kB / 0.5632 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.4069, allocations: 7.984 kB / 0.5633 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.4084, allocations: 1.436 MB / 0.5647 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4084, allocations: 4.062 kB / 0.5647 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009166/0.4094, allocations: 0.4957 MB / 0.5651 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.4095, allocations: 55.73 kB / 0.5652 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.4096, allocations: 4 kB / 0.5652 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.4098, allocations: 15.98 kB / 0.5652 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.79e-05/0.4099, allocations: 27.95 kB / 0.5652 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.4099, allocations: 15.94 kB / 0.5653 GB, free: 11.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003779/0.4103, allocations: 287.1 kB / 0.5655 GB, free: 11.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4103, allocations: 4 kB / 0.5655 GB, free: 11.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00061/0.4109, allocations: 123.9 kB / 0.5657 GB, free: 11.17 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.002764/0.4137, allocations: 1.408 MB / 0.567 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009471/0.4146, allocations: 383.2 kB / 0.5674 GB, free: 9.535 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4146, allocations: 8.188 kB / 0.5674 GB, free: 9.527 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000408/0.415, allocations: 246.4 kB / 0.5676 GB, free: 9.273 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.4157, allocations: 131.8 kB / 0.5678 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006428/0.4222, allocations: 4.096 MB / 0.5718 GB, free: 4.844 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.4225, allocations: 255.8 kB / 0.572 GB, free: 4.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003094/0.4228, allocations: 67.36 kB / 0.5721 GB, free: 4.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/0.4231, allocations: 163.4 kB / 0.5722 GB, free: 4.34 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4231, allocations: 0 / 0.5722 GB, free: 4.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04958/0.4727, allocations: 12.48 MB / 0.5844 GB, free: 8.008 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.03, allocations: 11.06 kB / 0.5844 GB, free: 8 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.105337372981012] Failed to read output from testmodel.py, exit status != 0: 14.211592172272503 14.238656476 13.845426796 Calling exit ...