Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001415/0.001415, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001442/0.001442, allocations: 210.4 kB / 23.73 MB, free: 4.41 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.525/1.525, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.1874/0.1874, allocations: 38.56 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.89 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.325, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006045/0.331, allocations: 4.013 MB / 0.5459 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.3327, allocations: 0.8758 MB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.3329, allocations: 14.56 kB / 0.5467 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.3331, allocations: 52.84 kB / 0.5468 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005519/0.3337, allocations: 182.6 kB / 0.547 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.3339, allocations: 95.84 kB / 0.547 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004717/0.3344, allocations: 398.7 kB / 0.5474 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3346, allocations: 74.97 kB / 0.5475 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.335, allocations: 188 kB / 0.5477 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.3353, allocations: 191.2 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.514e-05/0.3354, allocations: 19.09 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.3354, allocations: 19.56 kB / 0.5479 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3355, allocations: 84.39 kB / 0.548 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.3357, allocations: 119.7 kB / 0.5481 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004139/0.3361, allocations: 292.7 kB / 0.5484 GB, free: 11.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3361, allocations: 4 kB / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3361, allocations: 0 / 0.5484 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.3361, allocations: 3.938 kB / 0.5484 GB, free: 11.4 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001095/0.3372, allocations: 0.5286 MB / 0.5489 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3373, allocations: 14.27 kB / 0.5489 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.958e-05/0.3373, allocations: 62.12 kB / 0.549 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.3374, allocations: 32.03 kB / 0.549 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.338, allocations: 275.3 kB / 0.5493 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.338, allocations: 20.88 kB / 0.5493 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.3381, allocations: 22.72 kB / 0.5493 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.3386, allocations: 291.5 kB / 0.5496 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.3386, allocations: 3.938 kB / 0.5496 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.3386, allocations: 14.75 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.3386, allocations: 6 kB / 0.5496 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.3389, allocations: 176.8 kB / 0.5498 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.3405, allocations: 1.142 MB / 0.5509 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.3408, allocations: 102.1 kB / 0.551 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.756e-05/0.3409, allocations: 46.95 kB / 0.551 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.3409, allocations: 1.156 kB / 0.551 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.3409, allocations: 41.06 kB / 0.5511 GB, free: 9.086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.3409, allocations: 0 / 0.5511 GB, free: 9.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009251/0.3419, allocations: 413.1 kB / 0.5515 GB, free: 8.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.3419, allocations: 78.83 kB / 0.5515 GB, free: 8.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.3422, allocations: 260.8 kB / 0.5518 GB, free: 8.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.3423, allocations: 25.7 kB / 0.5518 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.3424, allocations: 205.4 kB / 0.552 GB, free: 8.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.3425, allocations: 41.75 kB / 0.552 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.915e-05/0.3425, allocations: 40.8 kB / 0.5521 GB, free: 8.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3427, allocations: 336.4 kB / 0.5524 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.49e-05/0.3428, allocations: 38.48 kB / 0.5524 GB, free: 7.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3429, allocations: 132.4 kB / 0.5526 GB, free: 7.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/0.3432, allocations: 187.6 kB / 0.5527 GB, free: 7.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3432, allocations: 0 / 0.5527 GB, free: 7.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003185/0.3435, allocations: 210.5 kB / 0.5529 GB, free: 7.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3435, allocations: 10.05 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3435, allocations: 3.156 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.3435, allocations: 4.812 kB / 0.553 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3437, allocations: 46.77 kB / 0.553 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.3437, allocations: 4.906 kB / 0.553 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.3439, allocations: 16.25 kB / 0.553 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.3439, allocations: 12.84 kB / 0.553 GB, free: 7.383 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 (24): * Single equations (assignments): 24 * 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.0001641/0.344, allocations: 152.6 kB / 0.5532 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.3441, allocations: 21.67 kB / 0.5532 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.3444, allocations: 138.7 kB / 0.5533 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.3444, allocations: 2.406 kB / 0.5533 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3444, allocations: 3.938 kB / 0.5533 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.3444, allocations: 9.281 kB / 0.5534 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006467/0.345, allocations: 441.7 kB / 0.5538 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.345, allocations: 0 / 0.5538 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3452, allocations: 27.3 kB / 0.5538 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3452, allocations: 1.062 kB / 0.5538 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.3452, allocations: 6.312 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3452, allocations: 1.062 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.3452, allocations: 1.281 kB / 0.5538 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.3456, allocations: 287.5 kB / 0.5541 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.3457, allocations: 18.89 kB / 0.5541 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.441e-05/0.3457, allocations: 13.08 kB / 0.5541 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3458, allocations: 5 kB / 0.5541 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.3458, allocations: 12.52 kB / 0.5541 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.3458, allocations: 10.59 kB / 0.5541 GB, free: 6.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.346, allocations: 170.2 kB / 0.5543 GB, free: 6.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.346, allocations: 0 / 0.5543 GB, free: 6.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.3464, allocations: 44.66 kB / 0.5543 GB, free: 6.328 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 (13): * Single equations (assignments): 12 * 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.0006427/0.347, allocations: 0.8135 MB / 0.5551 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000221/0.3472, allocations: 108.8 kB / 0.5552 GB, free: 5.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3472, allocations: 5.438 kB / 0.5553 GB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.564e-05/0.3473, allocations: 39.33 kB / 0.5553 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.3478, allocations: 60.23 kB / 0.5553 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.351, allocations: 2.464 MB / 0.5578 GB, free: 3.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.3512, allocations: 162.8 kB / 0.5579 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3513, allocations: 30.28 kB / 0.5579 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3514, allocations: 87.41 kB / 0.558 GB, free: 3.098 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3514, allocations: 0 / 0.558 GB, free: 3.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/0.3884, allocations: 5.303 MB / 0.5632 GB, free: 13.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.51, allocations: 6.641 kB / 0.5632 GB, free: 13.95 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_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_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.367675142362714] Failed to read output from testmodel.py, exit status != 0: 11.614509469363838 11.631365041 11.291687524 Calling exit ...