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.00176/0.00176, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001554/0.001554, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.456/1.456, allocations: 230.6 MB / 258.3 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.1928/0.1928, allocations: 38.53 MB / 353.2 MB, free: 12.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="cs",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.002135/0.002135, allocations: 67.89 kB / 493.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3486, allocations: 62.47 MB / 0.5428 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.00857/0.3572, allocations: 4.199 MB / 0.5469 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.3598, allocations: 0.938 MB / 0.5478 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.36, allocations: 19.09 kB / 0.5478 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.3603, allocations: 47.81 kB / 0.5479 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007874/0.3611, allocations: 188.8 kB / 0.548 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.3615, allocations: 92.28 kB / 0.5481 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007105/0.3622, allocations: 400 kB / 0.5485 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.3625, allocations: 81.8 kB / 0.5486 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.363, allocations: 187.1 kB / 0.5488 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005502/0.3635, allocations: 220.2 kB / 0.549 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-05/0.3636, allocations: 20.38 kB / 0.549 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.218e-05/0.3637, allocations: 20.78 kB / 0.549 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001857/0.3638, allocations: 107.7 kB / 0.5491 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.3641, allocations: 150.7 kB / 0.5493 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005532/0.3646, allocations: 320.9 kB / 0.5496 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3646, allocations: 0 / 0.5496 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3646, allocations: 0 / 0.5496 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.3646, allocations: 1.406 kB / 0.5496 GB, free: 11.25 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.001495/0.3661, allocations: 0.5578 MB / 0.5501 GB, free: 10.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3662, allocations: 13.64 kB / 0.5501 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.686e-05/0.3662, allocations: 10 kB / 0.5501 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.568e-05/0.3663, allocations: 54.61 kB / 0.5502 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.792e-05/0.3664, allocations: 36.5 kB / 0.5502 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007336/0.3671, allocations: 276.1 kB / 0.5505 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.3672, allocations: 25.45 kB / 0.5505 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.3672, allocations: 26.81 kB / 0.5505 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007326/0.368, allocations: 312.2 kB / 0.5508 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.368, allocations: 1.438 kB / 0.5508 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.368, allocations: 14.3 kB / 0.5508 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.368, allocations: 9.594 kB / 0.5509 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/0.3686, allocations: 217.7 kB / 0.5511 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.3712, allocations: 1.308 MB / 0.5523 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005056/0.3717, allocations: 138.8 kB / 0.5525 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.3718, allocations: 57.75 kB / 0.5525 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.3718, allocations: 1.906 kB / 0.5525 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.3719, allocations: 32.25 kB / 0.5526 GB, free: 8.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 2.344e-06/0.3719, allocations: 3.938 kB / 0.5526 GB, free: 8.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.001157/0.373, allocations: 371.9 kB / 0.5529 GB, free: 8.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.589e-05/0.3731, allocations: 83.28 kB / 0.553 GB, free: 8.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.3735, allocations: 268.6 kB / 0.5532 GB, free: 8.219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.3736, allocations: 26.86 kB / 0.5533 GB, free: 8.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.3738, allocations: 209.3 kB / 0.5535 GB, free: 7.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.3738, allocations: 50.48 kB / 0.5535 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.374, allocations: 41.45 kB / 0.5536 GB, free: 7.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.3742, allocations: 344.8 kB / 0.5539 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.3743, allocations: 55.92 kB / 0.5539 GB, free: 7.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.3746, allocations: 142 kB / 0.5541 GB, free: 7.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.375, allocations: 228.8 kB / 0.5543 GB, free: 7.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.375, allocations: 1.156 kB / 0.5543 GB, free: 7.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005583/0.3755, allocations: 251.1 kB / 0.5545 GB, free: 7.066 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3756, allocations: 6 kB / 0.5545 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-06/0.3756, allocations: 3.469 kB / 0.5545 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.3756, allocations: 4.969 kB / 0.5546 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.3759, allocations: 52.84 kB / 0.5546 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.3759, allocations: 8.594 kB / 0.5546 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.3761, allocations: 13.17 kB / 0.5546 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.3761, allocations: 16.77 kB / 0.5546 GB, free: 7.031 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.0002146/0.3763, allocations: 150.7 kB / 0.5548 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.3764, allocations: 22.83 kB / 0.5548 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004738/0.3769, allocations: 203.5 kB / 0.555 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3769, allocations: 2.062 kB / 0.555 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3769, allocations: 1.188 kB / 0.555 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3769, allocations: 7.938 kB / 0.555 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008102/0.3777, allocations: 0.5346 MB / 0.5555 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3777, allocations: 4 kB / 0.5555 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.3778, allocations: 26.36 kB / 0.5556 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3779, allocations: 1.375 kB / 0.5556 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.3779, allocations: 10.22 kB / 0.5556 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3779, allocations: 1.156 kB / 0.5556 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3779, allocations: 1.062 kB / 0.5556 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.3782, allocations: 300.3 kB / 0.5559 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.3783, allocations: 27.52 kB / 0.5559 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.3783, allocations: 9.125 kB / 0.5559 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.3784, allocations: 2.031 kB / 0.5559 GB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.3784, allocations: 17.16 kB / 0.5559 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.3785, allocations: 7.125 kB / 0.5559 GB, free: 6.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.3787, allocations: 185 kB / 0.5561 GB, free: 5.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3787, allocations: 0 / 0.5561 GB, free: 5.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.379, allocations: 48.44 kB / 0.5561 GB, free: 5.879 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.0006697/0.3797, allocations: 0.8234 MB / 0.5569 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.38, allocations: 159.8 kB / 0.5571 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.38, allocations: 1.25 kB / 0.5571 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3801, allocations: 67.38 kB / 0.5572 GB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000502/0.3806, allocations: 67.84 kB / 0.5572 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.3836, allocations: 2.562 MB / 0.5597 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.3841, allocations: 0.7869 MB / 0.5605 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.3842, allocations: 42.28 kB / 0.5605 GB, free: 1.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.3844, allocations: 87.39 kB / 0.5606 GB, free: 1.539 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3844, allocations: 0 / 0.5606 GB, free: 1.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.4102, allocations: 5.239 MB / 0.5657 GB, free: 12.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.92, allocations: 14.81 kB / 0.5658 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 & /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.771625849010888] Failed to read output from testmodel.py, exit status != 0: 12.08853900298709 12.104405682 11.736302914 Calling exit ...