Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001495/0.001495, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001514/0.001514, allocations: 213.9 kB / 23.74 MB, free: 4.656 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.478/1.478, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2036/0.2036, allocations: 38.53 MB / 352.5 MB, free: 12.56 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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002191/0.002191, allocations: 71.83 kB / 492.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3494, allocations: 62.46 MB / 0.542 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005579/0.355, allocations: 4.079 MB / 0.546 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.3566, allocations: 0.9122 MB / 0.5469 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.3567, allocations: 19.22 kB / 0.5469 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.3569, allocations: 51.12 kB / 0.5469 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005028/0.3574, allocations: 162 kB / 0.5471 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.3576, allocations: 81.8 kB / 0.5472 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.3581, allocations: 376.8 kB / 0.5475 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.3583, allocations: 57.3 kB / 0.5476 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/0.3586, allocations: 182.9 kB / 0.5478 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.3589, allocations: 169 kB / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.359, allocations: 16.88 kB / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.541e-05/0.359, allocations: 16.84 kB / 0.548 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.3591, allocations: 85.91 kB / 0.548 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.3593, allocations: 124 kB / 0.5482 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.3596, allocations: 264.2 kB / 0.5484 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3596, allocations: 0 / 0.5484 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3596, allocations: 0 / 0.5484 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3596, allocations: 4 kB / 0.5484 GB, free: 11.56 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008837/0.3605, allocations: 495.8 kB / 0.5489 GB, free: 11.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3606, allocations: 18.03 kB / 0.5489 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.3606, allocations: 61.36 kB / 0.549 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.3607, allocations: 31.03 kB / 0.549 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.3612, allocations: 267.4 kB / 0.5492 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.3612, allocations: 12.47 kB / 0.5493 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.3612, allocations: 21.09 kB / 0.5493 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.3617, allocations: 267.2 kB / 0.5495 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3617, allocations: 1.5 kB / 0.5495 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.3617, allocations: 9.344 kB / 0.5495 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3617, allocations: 9.156 kB / 0.5496 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.362, allocations: 172.6 kB / 0.5497 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.3638, allocations: 1.14 MB / 0.5508 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.3639, allocations: 72.48 kB / 0.5509 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.409e-05/0.364, allocations: 39.91 kB / 0.5509 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.364, allocations: 1.344 kB / 0.5509 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.364, allocations: 35.62 kB / 0.551 GB, free: 9.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.364, allocations: 0 / 0.551 GB, free: 9.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007872/0.3648, allocations: 337.4 kB / 0.5513 GB, free: 9.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.3649, allocations: 86.39 kB / 0.5514 GB, free: 8.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.3651, allocations: 248.9 kB / 0.5516 GB, free: 8.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.3651, allocations: 31.39 kB / 0.5516 GB, free: 8.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3653, allocations: 186.5 kB / 0.5518 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3653, allocations: 36.19 kB / 0.5519 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.924e-05/0.3654, allocations: 43.19 kB / 0.5519 GB, free: 8.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3655, allocations: 332.4 kB / 0.5522 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.953e-05/0.3656, allocations: 26.33 kB / 0.5522 GB, free: 8.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3657, allocations: 122.2 kB / 0.5524 GB, free: 7.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.3659, allocations: 170.9 kB / 0.5525 GB, free: 7.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3659, allocations: 0 / 0.5525 GB, free: 7.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002654/0.3662, allocations: 179 kB / 0.5527 GB, free: 7.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3662, allocations: 9.688 kB / 0.5527 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3662, allocations: 3.438 kB / 0.5527 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3662, allocations: 5.844 kB / 0.5527 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.3663, allocations: 44.2 kB / 0.5528 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3664, allocations: 4.594 kB / 0.5528 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.716e-05/0.3665, allocations: 12.14 kB / 0.5528 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.3665, allocations: 16.67 kB / 0.5528 GB, free: 7.676 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 (22): * Single equations (assignments): 22 * 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.0001399/0.3666, allocations: 146.5 kB / 0.5529 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.188e-05/0.3667, allocations: 20.59 kB / 0.5529 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.3668, allocations: 97.16 kB / 0.553 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3668, allocations: 1.281 kB / 0.553 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3668, allocations: 1.062 kB / 0.553 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3668, allocations: 1.469 kB / 0.553 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/0.3673, allocations: 404.1 kB / 0.5534 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3673, allocations: 3.938 kB / 0.5534 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-05/0.3674, allocations: 22.83 kB / 0.5534 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3674, allocations: 0.9375 kB / 0.5534 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.3674, allocations: 1.219 kB / 0.5535 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3674, allocations: 0.9062 kB / 0.5535 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3674, allocations: 1.406 kB / 0.5535 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002706/0.3677, allocations: 236.2 kB / 0.5537 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.3677, allocations: 18.17 kB / 0.5537 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.3678, allocations: 1.125 kB / 0.5537 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-05/0.3679, allocations: 5.062 kB / 0.5537 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.3679, allocations: 11.2 kB / 0.5537 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.3679, allocations: 6.297 kB / 0.5537 GB, free: 6.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001637/0.3681, allocations: 173.1 kB / 0.5539 GB, free: 6.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3681, allocations: 0 / 0.5539 GB, free: 6.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.3684, allocations: 39.12 kB / 0.5539 GB, free: 6.711 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.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 (9): * Single equations (assignments): 8 * 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.0005774/0.3689, allocations: 0.7618 MB / 0.5547 GB, free: 5.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.3691, allocations: 79.16 kB / 0.5547 GB, free: 5.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3691, allocations: 4.906 kB / 0.5547 GB, free: 5.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.941e-05/0.3692, allocations: 23.67 kB / 0.5548 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.3697, allocations: 57 kB / 0.5548 GB, free: 5.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.3724, allocations: 2.31 MB / 0.5571 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005245/0.3729, allocations: 0.7617 MB / 0.5578 GB, free: 3.199 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.3731, allocations: 30.94 kB / 0.5579 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3732, allocations: 75.28 kB / 0.5579 GB, free: 3.117 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3732, allocations: 0 / 0.5579 GB, free: 3.117 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.4063, allocations: 4.38 MB / 0.5622 GB, free: 15.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.61, allocations: 11.8 kB / 0.5622 GB, free: 15.25 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.47483029000432] Failed to read output from testmodel.py, exit status != 0: 11.71440202499798 11.72903217 11.366318726 Calling exit ...