Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.001903/0.001903, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002401/0.002401, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.565/1.565, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1839/0.1839, allocations: 38.55 MB / 352.5 MB, free: 12.29 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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial",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.002109/0.002109, allocations: 70.41 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3107, allocations: 62.46 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006166/0.3169, allocations: 4.343 MB / 0.5462 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.3195, allocations: 1.379 MB / 0.5475 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.3197, allocations: 20.91 kB / 0.5475 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.3207, allocations: 367.2 kB / 0.5479 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005394/0.3213, allocations: 225.5 kB / 0.5481 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006895/0.322, allocations: 254.3 kB / 0.5483 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006104/0.3226, allocations: 0.5295 MB / 0.5489 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.323, allocations: 224.2 kB / 0.5491 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004211/0.3234, allocations: 261.7 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005358/0.3239, allocations: 320.4 kB / 0.5496 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.324, allocations: 35.05 kB / 0.5497 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003555/0.3243, allocations: 152.5 kB / 0.5498 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.3246, allocations: 220.5 kB / 0.55 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000287/0.3249, allocations: 196.2 kB / 0.5502 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007476/0.3256, allocations: 0.58 MB / 0.5508 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3256, allocations: 1.438 kB / 0.5508 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3256, allocations: 0 / 0.5508 GB, free: 9.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.3256, allocations: 0 / 0.5508 GB, free: 9.727 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001324/0.327, allocations: 0.6736 MB / 0.5514 GB, free: 9.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.327, allocations: 13.83 kB / 0.5514 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.807e-05/0.3271, allocations: 83.61 kB / 0.5515 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.3278, allocations: 118.6 kB / 0.5516 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006653/0.3285, allocations: 340.9 kB / 0.552 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.3285, allocations: 33.48 kB / 0.552 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.3286, allocations: 58.28 kB / 0.552 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009168/0.3296, allocations: 0.6294 MB / 0.5527 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.3296, allocations: 6.156 kB / 0.5527 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.3296, allocations: 17.59 kB / 0.5527 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.3297, allocations: 27.7 kB / 0.5527 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007656/0.3305, allocations: 482.2 kB / 0.5532 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.3338, allocations: 2.738 MB / 0.5558 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.3342, allocations: 211.3 kB / 0.556 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.3344, allocations: 137.7 kB / 0.5562 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.3344, allocations: 7.938 kB / 0.5562 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.3344, allocations: 34.56 kB / 0.5562 GB, free: 5.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.803e-06/0.3344, allocations: 0 / 0.5562 GB, free: 5.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001615/0.3361, allocations: 0.9033 MB / 0.5571 GB, free: 4.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/0.3361, allocations: 89.17 kB / 0.5572 GB, free: 4.258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.3365, allocations: 336.3 kB / 0.5575 GB, free: 3.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.3365, allocations: 33.7 kB / 0.5575 GB, free: 3.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.3367, allocations: 284 kB / 0.5578 GB, free: 3.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.401e-05/0.3368, allocations: 107.1 kB / 0.5579 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.337, allocations: 90.16 kB / 0.558 GB, free: 3.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3371, allocations: 354.7 kB / 0.5583 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.3374, allocations: 144.9 kB / 0.5585 GB, free: 2.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000415/0.3378, allocations: 342.6 kB / 0.5588 GB, free: 2.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006958/0.3385, allocations: 0.513 MB / 0.5593 GB, free: 1.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3385, allocations: 7.938 kB / 0.5593 GB, free: 1.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008676/0.3394, allocations: 0.5323 MB / 0.5598 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3394, allocations: 10.66 kB / 0.5598 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3394, allocations: 4 kB / 0.5598 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.273e-05/0.3395, allocations: 15.98 kB / 0.5599 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.3399, allocations: 116.5 kB / 0.56 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.851e-05/0.3399, allocations: 19.94 kB / 0.56 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.3402, allocations: 27.97 kB / 0.56 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.3402, allocations: 24 kB / 0.56 GB, free: 1.117 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002894/0.3405, allocations: 213.5 kB / 0.5602 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.3406, allocations: 39.75 kB / 0.5603 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00064/0.3412, allocations: 362.2 kB / 0.5606 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3412, allocations: 4 kB / 0.5606 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3412, allocations: 0 / 0.5606 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3412, allocations: 0 / 0.5606 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.3427, allocations: 0.8359 MB / 0.5614 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3427, allocations: 0 / 0.5614 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.343, allocations: 67.89 kB / 0.5615 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.343, allocations: 0 / 0.5615 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.343, allocations: 11.94 kB / 0.5615 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.343, allocations: 7.938 kB / 0.5615 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.343, allocations: 3.938 kB / 0.5615 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.3439, allocations: 0.582 MB / 0.5621 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.3439, allocations: 35.86 kB / 0.5621 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.344, allocations: 15.97 kB / 0.5621 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.3441, allocations: 8 kB / 0.5622 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.3442, allocations: 27.89 kB / 0.5622 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.3442, allocations: 8 kB / 0.5622 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.3445, allocations: 227 kB / 0.5624 GB, free: 14.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3445, allocations: 0 / 0.5624 GB, free: 14.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004802/0.345, allocations: 88 kB / 0.5625 GB, free: 14.5 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.001129/0.3461, allocations: 1.134 MB / 0.5636 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005976/0.3467, allocations: 349.7 kB / 0.5639 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3467, allocations: 3.938 kB / 0.5639 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.3469, allocations: 132.8 kB / 0.5641 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.3474, allocations: 69.42 kB / 0.5641 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/0.3525, allocations: 3.997 MB / 0.568 GB, free: 8.496 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.3528, allocations: 257.7 kB / 0.5683 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003243/0.3532, allocations: 131.1 kB / 0.5684 GB, free: 8.094 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.3534, allocations: 139.4 kB / 0.5685 GB, free: 7.961 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3534, allocations: 0 / 0.5685 GB, free: 7.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04137/0.3947, allocations: 7.965 MB / 0.5763 GB, free: 168 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.64, allocations: 14.66 kB / 0.5763 GB, free: 156 kB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.654905945062637] Failed to read output from testmodel.py, exit status != 0: 11.749125621980056 11.764986113 11.43618514 Calling exit ...