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.001308/0.001308, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001511/0.001511, allocations: 212.3 kB / 23.73 MB, free: 4.16 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1906/0.1906, allocations: 38.55 MB / 352.5 MB, free: 12.38 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.002146/0.002146, allocations: 71.89 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3576, allocations: 62.46 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.006542/0.3641, allocations: 3.991 MB / 0.5458 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.366, allocations: 0.8628 MB / 0.5467 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.3661, allocations: 19.31 kB / 0.5467 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.3664, allocations: 51.84 kB / 0.5467 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005231/0.3669, allocations: 188.9 kB / 0.5469 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.3671, allocations: 84.75 kB / 0.547 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004892/0.3676, allocations: 411 kB / 0.5474 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3678, allocations: 78.67 kB / 0.5475 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003767/0.3682, allocations: 190.3 kB / 0.5477 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.3685, allocations: 203.7 kB / 0.5479 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-05/0.3686, allocations: 20.62 kB / 0.5479 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.3687, allocations: 21.69 kB / 0.5479 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.3688, allocations: 118.8 kB / 0.548 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.369, allocations: 118.9 kB / 0.5481 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004094/0.3694, allocations: 316.9 kB / 0.5484 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3694, allocations: 0 / 0.5484 GB, free: 11.37 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3694, allocations: 0 / 0.5484 GB, free: 11.37 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3694, allocations: 1.406 kB / 0.5484 GB, free: 11.37 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.001246/0.3706, allocations: 0.5632 MB / 0.549 GB, free: 10.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.3707, allocations: 13.83 kB / 0.549 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.031e-05/0.3708, allocations: 63.2 kB / 0.549 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.881e-05/0.3708, allocations: 32.22 kB / 0.5491 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.3714, allocations: 279.5 kB / 0.5493 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.3714, allocations: 18.84 kB / 0.5494 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.3715, allocations: 25.19 kB / 0.5494 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.372, allocations: 319.5 kB / 0.5497 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.372, allocations: 1.594 kB / 0.5497 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.372, allocations: 5.688 kB / 0.5497 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.3721, allocations: 5.938 kB / 0.5497 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004027/0.3725, allocations: 216.2 kB / 0.5499 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.3743, allocations: 1.269 MB / 0.5511 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.3747, allocations: 130.8 kB / 0.5513 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.3748, allocations: 57.47 kB / 0.5513 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.3748, allocations: 10.39 kB / 0.5513 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.3749, allocations: 37.19 kB / 0.5514 GB, free: 8.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.933e-06/0.3749, allocations: 0 / 0.5514 GB, free: 8.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.000828/0.3757, allocations: 367.7 kB / 0.5517 GB, free: 8.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.3758, allocations: 79.23 kB / 0.5518 GB, free: 8.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.3761, allocations: 269.6 kB / 0.5521 GB, free: 8.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3761, allocations: 26.73 kB / 0.5521 GB, free: 8.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.3762, allocations: 210.3 kB / 0.5523 GB, free: 8.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.3763, allocations: 53.5 kB / 0.5523 GB, free: 8.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/0.3764, allocations: 45.25 kB / 0.5524 GB, free: 8.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3765, allocations: 345.4 kB / 0.5527 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.3766, allocations: 52.5 kB / 0.5528 GB, free: 7.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.3768, allocations: 153.9 kB / 0.5529 GB, free: 7.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.3772, allocations: 227.5 kB / 0.5531 GB, free: 7.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3772, allocations: 1.062 kB / 0.5531 GB, free: 7.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004196/0.3776, allocations: 246.5 kB / 0.5534 GB, free: 7.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3776, allocations: 11.06 kB / 0.5534 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.3776, allocations: 3.469 kB / 0.5534 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3776, allocations: 4.906 kB / 0.5534 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.3778, allocations: 52 kB / 0.5534 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.341e-05/0.3778, allocations: 8.344 kB / 0.5534 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.378, allocations: 4.406 kB / 0.5534 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.378, allocations: 21.77 kB / 0.5535 GB, free: 7.199 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.0001813/0.3782, allocations: 158.7 kB / 0.5536 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.3782, allocations: 31.03 kB / 0.5536 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003784/0.3786, allocations: 195.9 kB / 0.5538 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3786, allocations: 2.188 kB / 0.5538 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3786, allocations: 1.094 kB / 0.5538 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3786, allocations: 0 / 0.5538 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.3794, allocations: 0.5155 MB / 0.5543 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3794, allocations: 1.031 kB / 0.5543 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.3795, allocations: 30.89 kB / 0.5544 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3795, allocations: 1.344 kB / 0.5544 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3796, allocations: 9.25 kB / 0.5544 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.3796, allocations: 5.156 kB / 0.5544 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3796, allocations: 1.188 kB / 0.5544 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003577/0.3799, allocations: 301.4 kB / 0.5547 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.38, allocations: 23.61 kB / 0.5547 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.38, allocations: 5.031 kB / 0.5547 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.3801, allocations: 9.891 kB / 0.5547 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.23e-05/0.3802, allocations: 16.08 kB / 0.5547 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.3802, allocations: 4.031 kB / 0.5547 GB, free: 6.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.3804, allocations: 185.2 kB / 0.5549 GB, free: 6.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3804, allocations: 0 / 0.5549 GB, free: 6.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.3807, allocations: 52.5 kB / 0.5549 GB, free: 6.062 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.0007397/0.3814, allocations: 0.8217 MB / 0.5558 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.3818, allocations: 156 kB / 0.5559 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3818, allocations: 0.8438 kB / 0.5559 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.3819, allocations: 70.75 kB / 0.556 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.3824, allocations: 61.41 kB / 0.556 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003173/0.3856, allocations: 2.551 MB / 0.5585 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.3858, allocations: 174.1 kB / 0.5587 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.386, allocations: 46.25 kB / 0.5587 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.3861, allocations: 95.41 kB / 0.5588 GB, free: 2.238 MB / 398.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3861, allocations: 0 / 0.5588 GB, free: 2.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04831/0.4345, allocations: 5.644 MB / 0.5643 GB, free: 12.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.74, allocations: 7.922 kB / 0.5643 GB, free: 12.74 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 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.555078697390854] Failed to read output from testmodel.py, exit status != 0: 11.846101411152631 11.861479601 11.488987539 Calling exit ...