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.001342/0.001342, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001495/0.001495, allocations: 210.8 kB / 23.73 MB, free: 4.523 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.524/1.524, 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.1905/0.1905, allocations: 38.54 MB / 352.5 MB, free: 12.31 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.002038/0.002038, allocations: 64.19 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3727, allocations: 62.46 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.01108/0.3838, allocations: 4.446 MB / 0.5463 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00417/0.388, allocations: 1.392 MB / 0.5476 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004347/0.3884, allocations: 21.56 kB / 0.5477 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006795/0.3891, allocations: 108.4 kB / 0.5478 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001248/0.3903, allocations: 277.4 kB / 0.548 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.3908, allocations: 110.3 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.392, allocations: 0.5109 MB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003488/0.3923, allocations: 111.7 kB / 0.5487 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.3929, allocations: 207.8 kB / 0.5489 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005952/0.3935, allocations: 223.1 kB / 0.5491 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.56e-05/0.3935, allocations: 29.09 kB / 0.5492 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.744e-05/0.3936, allocations: 26.81 kB / 0.5492 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.3938, allocations: 104.7 kB / 0.5493 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.3941, allocations: 148.6 kB / 0.5494 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007322/0.3948, allocations: 383.4 kB / 0.5498 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3948, allocations: 1.5 kB / 0.5498 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3948, allocations: 3.938 kB / 0.5498 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3948, allocations: 3.984 kB / 0.5498 GB, free: 10.34 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.001705/0.3965, allocations: 0.5907 MB / 0.5504 GB, free: 9.848 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.3966, allocations: 12.11 kB / 0.5504 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.3967, allocations: 64.53 kB / 0.5505 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.3968, allocations: 44 kB / 0.5505 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.398, allocations: 345.1 kB / 0.5508 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.398, allocations: 19.28 kB / 0.5509 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-05/0.3981, allocations: 25.06 kB / 0.5509 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008743/0.399, allocations: 333.9 kB / 0.5512 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.399, allocations: 13.03 kB / 0.5512 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.3991, allocations: 15.58 kB / 0.5512 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.3991, allocations: 7.375 kB / 0.5512 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006284/0.3997, allocations: 202.7 kB / 0.5514 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.4027, allocations: 1.387 MB / 0.5528 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007237/0.4034, allocations: 197.8 kB / 0.553 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.4036, allocations: 70.23 kB / 0.553 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.4037, allocations: 3.25 kB / 0.553 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/0.4037, allocations: 41.8 kB / 0.5531 GB, free: 7.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.515e-06/0.4037, allocations: 0 / 0.5531 GB, free: 7.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001938/0.4057, allocations: 0.622 MB / 0.5537 GB, free: 7.082 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.4058, allocations: 131.5 kB / 0.5538 GB, free: 6.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.4063, allocations: 325.5 kB / 0.5541 GB, free: 6.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.4064, allocations: 30.02 kB / 0.5542 GB, free: 6.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.4066, allocations: 228.3 kB / 0.5544 GB, free: 6.465 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.341e-05/0.4067, allocations: 64.59 kB / 0.5544 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.4068, allocations: 51.3 kB / 0.5545 GB, free: 6.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.4071, allocations: 342.8 kB / 0.5548 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.4072, allocations: 51.12 kB / 0.5549 GB, free: 6.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.4075, allocations: 147.5 kB / 0.555 GB, free: 5.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005362/0.4081, allocations: 225.1 kB / 0.5552 GB, free: 5.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4081, allocations: 1.219 kB / 0.5552 GB, free: 5.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007206/0.4088, allocations: 266.7 kB / 0.5555 GB, free: 5.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.4088, allocations: 6.031 kB / 0.5555 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4088, allocations: 3.156 kB / 0.5555 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.391e-05/0.4089, allocations: 13.94 kB / 0.5555 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.4095, allocations: 82.77 kB / 0.5556 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.411, allocations: 1.27 MB / 0.5568 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.4113, allocations: 8.562 kB / 0.5568 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.4113, allocations: 14.34 kB / 0.5568 GB, free: 4.148 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.0003113/0.4116, allocations: 169.1 kB / 0.557 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.4118, allocations: 38.89 kB / 0.557 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000568/0.4124, allocations: 189.3 kB / 0.5572 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4124, allocations: 3.75 kB / 0.5572 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4124, allocations: 1.312 kB / 0.5572 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.4124, allocations: 1.375 kB / 0.5572 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.4138, allocations: 0.4933 MB / 0.5577 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4138, allocations: 1.219 kB / 0.5577 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.4142, allocations: 36.77 kB / 0.5577 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4142, allocations: 2.281 kB / 0.5577 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.4142, allocations: 10.41 kB / 0.5577 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.596e-06/0.4142, allocations: 6.016 kB / 0.5578 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.729e-05/0.4142, allocations: 4.938 kB / 0.5578 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008418/0.4151, allocations: 0.4885 MB / 0.5582 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.4151, allocations: 27.84 kB / 0.5583 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.4152, allocations: 4 kB / 0.5583 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.4156, allocations: 8 kB / 0.5583 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.4156, allocations: 15.91 kB / 0.5583 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.4157, allocations: 8 kB / 0.5583 GB, free: 2.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003797/0.416, allocations: 223.1 kB / 0.5585 GB, free: 2.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.416, allocations: 4 kB / 0.5585 GB, free: 2.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007486/0.4168, allocations: 60 kB / 0.5586 GB, free: 2.574 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.0008458/0.4176, allocations: 1.027 MB / 0.5596 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003868/0.418, allocations: 163.8 kB / 0.5597 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.418, allocations: 4 kB / 0.5597 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.4181, allocations: 59.98 kB / 0.5598 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007315/0.4189, allocations: 103.6 kB / 0.5599 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.423, allocations: 3.258 MB / 0.5631 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.4232, allocations: 193.4 kB / 0.5633 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.4234, allocations: 62.92 kB / 0.5633 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.4236, allocations: 107.4 kB / 0.5634 GB, free: 13.39 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4236, allocations: 0 / 0.5634 GB, free: 13.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04105/0.4647, allocations: 7.686 MB / 0.5709 GB, free: 5.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.86, allocations: 11.17 kB / 0.5709 GB, free: 5.887 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.903645121958107] Failed to read output from testmodel.py, exit status != 0: 11.970950055867434 11.994547077 11.59497893 Calling exit ...