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.001327/0.001327, 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.001563/0.001563, allocations: 211.5 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.547/1.547, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1899/0.1899, allocations: 38.56 MB / 352.5 MB, free: 12.3 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.002136/0.002136, allocations: 70.39 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3606, allocations: 62.47 MB / 0.5419 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008663/0.3692, allocations: 5.038 MB / 0.5469 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004065/0.3733, allocations: 1.994 MB / 0.5488 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.3737, allocations: 22.59 kB / 0.5488 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000631/0.3743, allocations: 150.9 kB / 0.549 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.3755, allocations: 401.2 kB / 0.5494 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.3761, allocations: 217.1 kB / 0.5496 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.3771, allocations: 0.7032 MB / 0.5503 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.3776, allocations: 334.6 kB / 0.5506 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.3781, allocations: 313.1 kB / 0.5509 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004571/0.3786, allocations: 277.4 kB / 0.5511 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.381e-05/0.3786, allocations: 47.66 kB / 0.5512 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003225/0.379, allocations: 143.2 kB / 0.5513 GB, free: 9.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.3791, allocations: 153.9 kB / 0.5515 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.3794, allocations: 218.5 kB / 0.5517 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009448/0.3803, allocations: 0.7122 MB / 0.5524 GB, free: 8.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3803, allocations: 1.281 kB / 0.5524 GB, free: 8.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3803, allocations: 0 / 0.5524 GB, free: 8.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3804, allocations: 0 / 0.5524 GB, free: 8.484 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.00169/0.382, allocations: 0.8097 MB / 0.5532 GB, free: 7.836 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3821, allocations: 14.23 kB / 0.5532 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.522e-05/0.3822, allocations: 70.66 kB / 0.5532 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.3823, allocations: 56.17 kB / 0.5533 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009156/0.3832, allocations: 428.6 kB / 0.5537 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.3833, allocations: 27.78 kB / 0.5537 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.3833, allocations: 40.86 kB / 0.5538 GB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000758/0.3841, allocations: 486.5 kB / 0.5542 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.3841, allocations: 1.188 kB / 0.5542 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.3842, allocations: 20.22 kB / 0.5543 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3842, allocations: 9.812 kB / 0.5543 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004878/0.3847, allocations: 278.6 kB / 0.5545 GB, free: 6.852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.3869, allocations: 1.702 MB / 0.5562 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.3875, allocations: 241.7 kB / 0.5564 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.3876, allocations: 86.92 kB / 0.5565 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.3876, allocations: 7.938 kB / 0.5565 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.3879, allocations: 172.7 kB / 0.5567 GB, free: 4.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.3879, allocations: 0 / 0.5567 GB, free: 4.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001853/0.3898, allocations: 0.8574 MB / 0.5575 GB, free: 3.992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.3899, allocations: 136.5 kB / 0.5576 GB, free: 3.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005001/0.3904, allocations: 421.8 kB / 0.558 GB, free: 3.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.3904, allocations: 33.7 kB / 0.5581 GB, free: 3.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.3906, allocations: 268.2 kB / 0.5583 GB, free: 3.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.736e-05/0.3907, allocations: 95.17 kB / 0.5584 GB, free: 3.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.3908, allocations: 73.64 kB / 0.5585 GB, free: 2.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.391, allocations: 350.8 kB / 0.5588 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.3911, allocations: 83.95 kB / 0.5589 GB, free: 2.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/0.3914, allocations: 241.9 kB / 0.5591 GB, free: 2.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004498/0.3919, allocations: 319.1 kB / 0.5594 GB, free: 1.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3919, allocations: 3.938 kB / 0.5595 GB, free: 1.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008595/0.3927, allocations: 433.7 kB / 0.5599 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3927, allocations: 8 kB / 0.5599 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3928, allocations: 4 kB / 0.5599 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004111/0.3932, allocations: 93.14 kB / 0.56 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.3934, allocations: 71.91 kB / 0.56 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.3958, allocations: 1.894 MB / 0.5619 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.3961, allocations: 16 kB / 0.5619 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.3962, allocations: 23.88 kB / 0.5619 GB, free: 15.17 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.0002404/0.3964, allocations: 201.6 kB / 0.5621 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.3965, allocations: 43.72 kB / 0.5622 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006072/0.3971, allocations: 298.1 kB / 0.5624 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3971, allocations: 7.938 kB / 0.5624 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3971, allocations: 4 kB / 0.5625 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3971, allocations: 0 / 0.5625 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3982, allocations: 0.7098 MB / 0.5631 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3982, allocations: 0 / 0.5631 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.3985, allocations: 43.92 kB / 0.5632 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/0.3987, allocations: 56.8 kB / 0.5632 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.3987, allocations: 4 kB / 0.5632 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.4002, allocations: 1.444 MB / 0.5647 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4002, allocations: 0 / 0.5647 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008308/0.401, allocations: 0.4987 MB / 0.5651 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.4011, allocations: 63.75 kB / 0.5652 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.4012, allocations: 4 kB / 0.5652 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.4014, allocations: 12 kB / 0.5652 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.822e-05/0.4015, allocations: 23.95 kB / 0.5652 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.4015, allocations: 15.92 kB / 0.5653 GB, free: 11.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003745/0.4019, allocations: 291.1 kB / 0.5655 GB, free: 11.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4019, allocations: 0 / 0.5655 GB, free: 11.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005859/0.4025, allocations: 119.9 kB / 0.5656 GB, free: 11.13 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.002678/0.4052, allocations: 1.42 MB / 0.567 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008761/0.406, allocations: 390.9 kB / 0.5674 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.406, allocations: 4 kB / 0.5674 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.4064, allocations: 239 kB / 0.5676 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.4071, allocations: 127.7 kB / 0.5678 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.4134, allocations: 4.091 MB / 0.5718 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.4136, allocations: 255.9 kB / 0.572 GB, free: 4.531 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002494/0.4139, allocations: 67.36 kB / 0.5721 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.4141, allocations: 167.3 kB / 0.5722 GB, free: 4.297 MB / 414.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4141, allocations: 0 / 0.5722 GB, free: 4.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0473/0.4614, allocations: 12.49 MB / 0.5844 GB, free: 7.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.92, allocations: 3.438 kB / 0.5844 GB, free: 7.953 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.01092451205477] Failed to read output from testmodel.py, exit status != 0: 14.107146549038589 14.124530783 13.740698035 Calling exit ...