Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.001471/0.001471, 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.001574/0.001574, allocations: 208.4 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.491/1.491, 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.2058/0.2058, allocations: 38.55 MB / 352.5 MB, free: 12.32 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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.002237/0.002237, allocations: 67.89 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3852, allocations: 62.46 MB / 0.5419 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.0075/0.3927, allocations: 4.449 MB / 0.5463 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.3954, allocations: 1.388 MB / 0.5476 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004377/0.3958, allocations: 22 kB / 0.5477 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005735/0.3964, allocations: 100.4 kB / 0.5478 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.3974, allocations: 285.8 kB / 0.548 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.3978, allocations: 109.7 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3988, allocations: 0.5112 MB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.3991, allocations: 99.73 kB / 0.5487 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000483/0.3996, allocations: 216.1 kB / 0.5489 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004743/0.4, allocations: 205.7 kB / 0.5491 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.551e-05/0.4001, allocations: 25.84 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.4003, allocations: 27.16 kB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.4004, allocations: 103.7 kB / 0.5493 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.4007, allocations: 150 kB / 0.5494 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000698/0.4014, allocations: 386.9 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.4014, allocations: 1.531 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4014, allocations: 3.938 kB / 0.5498 GB, free: 10.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.4014, allocations: 4 kB / 0.5498 GB, free: 10.37 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001525/0.4029, allocations: 0.5982 MB / 0.5504 GB, free: 9.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.403, allocations: 12.64 kB / 0.5504 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.731e-05/0.4031, allocations: 64.09 kB / 0.5505 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.4032, allocations: 44.94 kB / 0.5505 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.4039, allocations: 339.8 kB / 0.5508 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.4039, allocations: 19.84 kB / 0.5508 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.273e-05/0.404, allocations: 25.97 kB / 0.5509 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005282/0.4045, allocations: 337.7 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.4045, allocations: 1.312 kB / 0.5512 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.4046, allocations: 10.56 kB / 0.5512 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.4046, allocations: 6.438 kB / 0.5512 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.405, allocations: 203.1 kB / 0.5514 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.4069, allocations: 1.399 MB / 0.5528 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.4074, allocations: 195.4 kB / 0.553 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.4075, allocations: 70.08 kB / 0.553 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.4075, allocations: 6.109 kB / 0.553 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.4075, allocations: 38.72 kB / 0.5531 GB, free: 7.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.823e-06/0.4075, allocations: 0 / 0.5531 GB, free: 7.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001218/0.4088, allocations: 0.6268 MB / 0.5537 GB, free: 7.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.4089, allocations: 131.6 kB / 0.5538 GB, free: 6.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/0.4093, allocations: 320.8 kB / 0.5541 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.4093, allocations: 30.86 kB / 0.5541 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.4095, allocations: 220.5 kB / 0.5544 GB, free: 6.492 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.4096, allocations: 63.31 kB / 0.5544 GB, free: 6.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.441e-05/0.4096, allocations: 52.12 kB / 0.5545 GB, free: 6.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4098, allocations: 343.7 kB / 0.5548 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.4099, allocations: 49.34 kB / 0.5548 GB, free: 6.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/0.4101, allocations: 148.9 kB / 0.555 GB, free: 5.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003448/0.4105, allocations: 231.8 kB / 0.5552 GB, free: 5.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4105, allocations: 1.188 kB / 0.5552 GB, free: 5.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004348/0.4109, allocations: 254.9 kB / 0.5554 GB, free: 5.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4109, allocations: 6.406 kB / 0.5555 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4109, allocations: 7.5 kB / 0.5555 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.411, allocations: 9.625 kB / 0.5555 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003869/0.4113, allocations: 82.05 kB / 0.5555 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.4125, allocations: 1.275 MB / 0.5568 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.4127, allocations: 13.06 kB / 0.5568 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.4127, allocations: 17.12 kB / 0.5568 GB, free: 4.168 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.413, allocations: 164.5 kB / 0.557 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.951e-05/0.4131, allocations: 35.08 kB / 0.557 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003515/0.4134, allocations: 189.6 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4134, allocations: 2.219 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.4134, allocations: 2.125 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4134, allocations: 1.281 kB / 0.5572 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009277/0.4144, allocations: 0.5012 MB / 0.5577 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4144, allocations: 5.094 kB / 0.5577 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.4146, allocations: 41.17 kB / 0.5577 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.4146, allocations: 2.75 kB / 0.5577 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.4146, allocations: 9.641 kB / 0.5577 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4146, allocations: 1.594 kB / 0.5577 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4146, allocations: 5.156 kB / 0.5577 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005302/0.4152, allocations: 494.1 kB / 0.5582 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.542e-05/0.4152, allocations: 31.81 kB / 0.5582 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.4153, allocations: 0 / 0.5582 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.4155, allocations: 12 kB / 0.5583 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.443e-05/0.4155, allocations: 19.91 kB / 0.5583 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.4155, allocations: 7.938 kB / 0.5583 GB, free: 2.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.4158, allocations: 219.2 kB / 0.5585 GB, free: 2.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4158, allocations: 0 / 0.5585 GB, free: 2.684 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004519/0.4162, allocations: 60 kB / 0.5586 GB, free: 2.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008603/0.4171, allocations: 1.03 MB / 0.5596 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.4175, allocations: 156 kB / 0.5597 GB, free: 1.414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4175, allocations: 0 / 0.5597 GB, free: 1.414 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.4176, allocations: 67.86 kB / 0.5598 GB, free: 1.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.4184, allocations: 97.16 kB / 0.5599 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004355/0.4228, allocations: 3.272 MB / 0.5631 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.423, allocations: 193.4 kB / 0.5632 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.4232, allocations: 58.92 kB / 0.5633 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.4234, allocations: 111.4 kB / 0.5634 GB, free: 13.43 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4234, allocations: 0 / 0.5634 GB, free: 13.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04103/0.4644, allocations: 7.577 MB / 0.5708 GB, free: 6.043 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.89, allocations: 11 kB / 0.5708 GB, free: 6.039 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.855699638370425] Failed to read output from testmodel.py, exit status != 0: 12.000512612983584 12.016751683 11.611912333 Calling exit ...