Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.001414/0.001414, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001653/0.001653, allocations: 212.3 kB / 23.74 MB, free: 4.688 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1871/0.1871, allocations: 38.54 MB / 352.5 MB, free: 12.52 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.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.002074/0.002074, allocations: 67.91 kB / 492.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3537, allocations: 62.47 MB / 0.542 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006692/0.3604, allocations: 4.203 MB / 0.5461 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3624, allocations: 0.9303 MB / 0.547 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.3626, allocations: 18.31 kB / 0.547 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.3628, allocations: 48.12 kB / 0.5471 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006188/0.3635, allocations: 181.2 kB / 0.5473 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.3637, allocations: 95.28 kB / 0.5473 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005601/0.3643, allocations: 408.7 kB / 0.5477 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.3645, allocations: 74.38 kB / 0.5478 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004044/0.365, allocations: 193.7 kB / 0.548 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004157/0.3654, allocations: 212.7 kB / 0.5482 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.65e-05/0.3654, allocations: 20.59 kB / 0.5482 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.623e-05/0.3655, allocations: 24.62 kB / 0.5482 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.3656, allocations: 119.4 kB / 0.5484 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.3658, allocations: 146.3 kB / 0.5485 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004752/0.3663, allocations: 317.7 kB / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3663, allocations: 0 / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3663, allocations: 1.312 kB / 0.5488 GB, free: 11.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3663, allocations: 0 / 0.5488 GB, free: 11.21 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001286/0.3676, allocations: 0.5615 MB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.3676, allocations: 14.11 kB / 0.5494 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.64e-05/0.3677, allocations: 62.64 kB / 0.5494 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.045e-05/0.3678, allocations: 32.44 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.3684, allocations: 280.3 kB / 0.5497 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.3684, allocations: 16.69 kB / 0.5497 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.3684, allocations: 26.38 kB / 0.5498 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005715/0.369, allocations: 316.9 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.369, allocations: 1.375 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.3691, allocations: 10.75 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.3691, allocations: 6.438 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003938/0.3695, allocations: 220.1 kB / 0.5503 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.3712, allocations: 1.304 MB / 0.5516 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.3716, allocations: 139.9 kB / 0.5517 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.3717, allocations: 57.16 kB / 0.5517 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3717, allocations: 5.156 kB / 0.5518 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.3718, allocations: 40.55 kB / 0.5518 GB, free: 8.695 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.783e-06/0.3718, allocations: 0 / 0.5518 GB, free: 8.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009051/0.3727, allocations: 368.7 kB / 0.5521 GB, free: 8.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.3728, allocations: 78.27 kB / 0.5522 GB, free: 8.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.373, allocations: 265.9 kB / 0.5525 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.3731, allocations: 33.7 kB / 0.5525 GB, free: 8.152 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.3732, allocations: 205.5 kB / 0.5527 GB, free: 7.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.3733, allocations: 50.14 kB / 0.5527 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.085e-05/0.3733, allocations: 46.02 kB / 0.5528 GB, free: 7.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3735, allocations: 335.9 kB / 0.5531 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.3736, allocations: 57.02 kB / 0.5532 GB, free: 7.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.3738, allocations: 154 kB / 0.5533 GB, free: 7.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.3741, allocations: 224.5 kB / 0.5535 GB, free: 7.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3741, allocations: 1.125 kB / 0.5535 GB, free: 7.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003733/0.3745, allocations: 246.8 kB / 0.5538 GB, free: 7.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3745, allocations: 11.25 kB / 0.5538 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3745, allocations: 2.844 kB / 0.5538 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.3745, allocations: 5.312 kB / 0.5538 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.3747, allocations: 48.34 kB / 0.5538 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.3747, allocations: 7.969 kB / 0.5538 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.3749, allocations: 20.75 kB / 0.5539 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.3749, allocations: 16.62 kB / 0.5539 GB, free: 6.992 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 (25): * Single equations (assignments): 25 * 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.0001794/0.3751, allocations: 158.8 kB / 0.554 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.043e-05/0.3751, allocations: 23.8 kB / 0.554 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003667/0.3755, allocations: 191.4 kB / 0.5542 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3755, allocations: 2.281 kB / 0.5542 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3755, allocations: 0.7812 kB / 0.5542 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.3755, allocations: 5.109 kB / 0.5542 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007698/0.3763, allocations: 0.5265 MB / 0.5548 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3763, allocations: 4.031 kB / 0.5548 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.3764, allocations: 27.2 kB / 0.5548 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3764, allocations: 1.188 kB / 0.5548 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.3765, allocations: 2.25 kB / 0.5548 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.3765, allocations: 13 kB / 0.5548 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3765, allocations: 1.156 kB / 0.5548 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.3769, allocations: 307.6 kB / 0.5551 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.3e-05/0.377, allocations: 22.84 kB / 0.5551 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.377, allocations: 6.141 kB / 0.5551 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.3772, allocations: 9.875 kB / 0.5551 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.3772, allocations: 8.484 kB / 0.5551 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.3772, allocations: 7.531 kB / 0.5551 GB, free: 5.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001875/0.3774, allocations: 184.9 kB / 0.5553 GB, free: 5.855 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3774, allocations: 0 / 0.5553 GB, free: 5.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.3778, allocations: 52.88 kB / 0.5554 GB, free: 5.848 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.000674/0.3785, allocations: 0.8271 MB / 0.5562 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003105/0.3788, allocations: 156.1 kB / 0.5563 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3788, allocations: 1.031 kB / 0.5563 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3789, allocations: 73.59 kB / 0.5564 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.3794, allocations: 58.39 kB / 0.5565 GB, free: 4.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003201/0.3826, allocations: 2.561 MB / 0.559 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.383, allocations: 0.7792 MB / 0.5597 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.3831, allocations: 50.25 kB / 0.5598 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3833, allocations: 87.41 kB / 0.5598 GB, free: 1.516 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3833, allocations: 0 / 0.5598 GB, free: 1.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04042/0.4237, allocations: 5.205 MB / 0.5649 GB, free: 12.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.63, allocations: 11.8 kB / 0.5649 GB, free: 12.44 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_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_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.470361244995729] Failed to read output from testmodel.py, exit status != 0: 11.736736038001254 11.753805285 11.38403612 Calling exit ...