Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.001806/0.001806, 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.002134/0.002134, allocations: 209.7 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.2675/0.2675, allocations: 38.56 MB / 352.5 MB, free: 12.27 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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.003319/0.003319, allocations: 67.89 kB / 492.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3406, allocations: 62.47 MB / 0.5419 GB, free: 220 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007138/0.3477, allocations: 5.191 MB / 0.547 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006451/0.3542, allocations: 3.824 MB / 0.5507 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004212/0.3546, allocations: 23.47 kB / 0.5508 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.3665, allocations: 5.369 MB / 0.556 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009444/0.3674, allocations: 346.4 kB / 0.5563 GB, free: 5.465 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00066/0.3681, allocations: 251.5 kB / 0.5566 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.3702, allocations: 1.633 MB / 0.5582 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005287/0.3707, allocations: 336.3 kB / 0.5585 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.3712, allocations: 382.6 kB / 0.5589 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006572/0.3719, allocations: 474.2 kB / 0.5593 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.935e-05/0.372, allocations: 48 kB / 0.5594 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.3723, allocations: 119.8 kB / 0.5595 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002892/0.3725, allocations: 283.2 kB / 0.5597 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.3728, allocations: 254.7 kB / 0.56 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008908/0.3737, allocations: 0.7626 MB / 0.5607 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3737, allocations: 0 / 0.5607 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3737, allocations: 0 / 0.5607 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.3737, allocations: 4 kB / 0.5607 GB, free: 0.9453 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001717/0.3755, allocations: 0.853 MB / 0.5616 GB, free: 64 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3755, allocations: 15.98 kB / 0.5616 GB, free: 48 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.3756, allocations: 94.69 kB / 0.5617 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004428/0.3761, allocations: 92.47 kB / 0.5618 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.3772, allocations: 0.4885 MB / 0.5622 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.3772, allocations: 36.98 kB / 0.5623 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.539e-05/0.3773, allocations: 51.98 kB / 0.5623 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009796/0.3783, allocations: 0.6375 MB / 0.5629 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.3783, allocations: 11.94 kB / 0.563 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.3784, allocations: 23.98 kB / 0.563 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.3785, allocations: 52.95 kB / 0.563 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008015/0.3793, allocations: 487.6 kB / 0.5635 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.383, allocations: 2.342 MB / 0.5658 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.3835, allocations: 295.6 kB / 0.5661 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.3838, allocations: 162.6 kB / 0.5662 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.3838, allocations: 7.938 kB / 0.5662 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.3838, allocations: 42.56 kB / 0.5663 GB, free: 11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.033e-06/0.3839, allocations: 0 / 0.5663 GB, free: 11 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.002476/0.3863, allocations: 1.278 MB / 0.5675 GB, free: 9.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.3864, allocations: 110.8 kB / 0.5676 GB, free: 9.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.3869, allocations: 429.8 kB / 0.568 GB, free: 9.121 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.3869, allocations: 33.7 kB / 0.5681 GB, free: 9.082 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.3872, allocations: 316.2 kB / 0.5684 GB, free: 8.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3873, allocations: 123 kB / 0.5685 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.3874, allocations: 82.14 kB / 0.5686 GB, free: 8.562 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.3876, allocations: 370.7 kB / 0.5689 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.3879, allocations: 160.9 kB / 0.5691 GB, free: 8.035 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.3883, allocations: 299.3 kB / 0.5694 GB, free: 7.684 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006769/0.3889, allocations: 491.7 kB / 0.5698 GB, free: 7.145 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3889, allocations: 4 kB / 0.5698 GB, free: 7.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001362/0.3903, allocations: 0.7164 MB / 0.5705 GB, free: 6.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3903, allocations: 10.97 kB / 0.5705 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3903, allocations: 8.375 kB / 0.5705 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006469/0.391, allocations: 201.5 kB / 0.5707 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.3913, allocations: 83.83 kB / 0.5708 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.3963, allocations: 3.995 MB / 0.5747 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003272/0.3966, allocations: 23.92 kB / 0.5747 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.3966, allocations: 24.09 kB / 0.5748 GB, free: 1.844 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003181/0.397, allocations: 229.6 kB / 0.575 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.3971, allocations: 51.7 kB / 0.575 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009225/0.398, allocations: 499 kB / 0.5755 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.398, allocations: 4 kB / 0.5755 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.398, allocations: 4.031 kB / 0.5755 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.398, allocations: 0 / 0.5755 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.3998, allocations: 0.973 MB / 0.5765 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3998, allocations: 0 / 0.5765 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.4003, allocations: 83.95 kB / 0.5765 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.4005, allocations: 53.67 kB / 0.5766 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.4005, allocations: 8 kB / 0.5766 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/0.4027, allocations: 2.632 MB / 0.5792 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.4028, allocations: 8.016 kB / 0.5792 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.404, allocations: 0.803 MB / 0.58 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.4042, allocations: 75.8 kB / 0.58 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.673e-05/0.4043, allocations: 8 kB / 0.58 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.4045, allocations: 11.98 kB / 0.5801 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.4046, allocations: 27.95 kB / 0.5801 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.4046, allocations: 12 kB / 0.5801 GB, free: 12.03 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.405, allocations: 295.1 kB / 0.5804 GB, free: 11.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.405, allocations: 0 / 0.5804 GB, free: 11.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006239/0.4056, allocations: 135.9 kB / 0.5805 GB, free: 11.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001537/0.4072, allocations: 1.371 MB / 0.5818 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.4086, allocations: 0.708 MB / 0.5825 GB, free: 9.465 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4086, allocations: 0 / 0.5825 GB, free: 9.465 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005787/0.4092, allocations: 410 kB / 0.5829 GB, free: 9.039 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.41, allocations: 113.9 kB / 0.583 GB, free: 8.926 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008495/0.4185, allocations: 5.416 MB / 0.5883 GB, free: 3.285 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005673/0.4191, allocations: 332.8 kB / 0.5886 GB, free: 2.934 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004561/0.4195, allocations: 104.4 kB / 0.5887 GB, free: 2.828 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.4199, allocations: 199.4 kB / 0.5889 GB, free: 2.633 MB / 430.1 MB Notification: Performance of SimCode: time 1.703e-06/0.4199, allocations: 4 kB / 0.5889 GB, free: 2.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05068/0.4706, allocations: 12.89 MB / 0.6015 GB, free: 5.953 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.77, allocations: 14.58 kB / 0.6015 GB, free: 5.941 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.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_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.784318711142987] Failed to read output from testmodel.py, exit status != 0: 13.907678223215044 13.935626211 13.556485121 Calling exit ...