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.001335/0.001335, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001558/0.001558, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.1868/0.1868, allocations: 38.51 MB / 348.7 MB, free: 2.582 MB / 270.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.002031/0.002031, allocations: 63.91 kB / 487.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1222, allocations: 62.42 MB / 0.5367 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.008217/0.1305, allocations: 4.09 MB / 0.5407 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1324, allocations: 0.9308 MB / 0.5416 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003544/0.1328, allocations: 15.81 kB / 0.5416 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.1331, allocations: 59.55 kB / 0.5416 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008789/0.134, allocations: 179 kB / 0.5418 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.1343, allocations: 91.81 kB / 0.5419 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005946/0.1349, allocations: 402.5 kB / 0.5423 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.1352, allocations: 94.91 kB / 0.5424 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003711/0.1355, allocations: 195.2 kB / 0.5426 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003738/0.1359, allocations: 219.2 kB / 0.5428 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.435e-05/0.136, allocations: 20 kB / 0.5428 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.816e-05/0.136, allocations: 20 kB / 0.5428 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.1362, allocations: 111.6 kB / 0.5429 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.1363, allocations: 147.2 kB / 0.5431 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.1368, allocations: 322.6 kB / 0.5434 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1368, allocations: 0 / 0.5434 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1368, allocations: 0 / 0.5434 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1368, allocations: 0 / 0.5434 GB, free: 0.6484 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.001263/0.1381, allocations: 0.6291 MB / 0.544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1381, allocations: 8.031 kB / 0.544 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.156e-05/0.1382, allocations: 66.61 kB / 0.5441 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.893e-05/0.1383, allocations: 36.7 kB / 0.5441 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.1388, allocations: 343.2 kB / 0.5444 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1388, allocations: 19.94 kB / 0.5444 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.1389, allocations: 16 kB / 0.5445 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.1394, allocations: 320.5 kB / 0.5448 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1394, allocations: 0 / 0.5448 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.1394, allocations: 15.98 kB / 0.5448 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1394, allocations: 4 kB / 0.5448 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.1398, allocations: 217.5 kB / 0.545 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.1415, allocations: 1.341 MB / 0.5463 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.1419, allocations: 141.1 kB / 0.5464 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.142, allocations: 57.75 kB / 0.5465 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.142, allocations: 4 kB / 0.5465 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.142, allocations: 34.56 kB / 0.5465 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.142, allocations: 0 / 0.5465 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008109/0.1429, allocations: 373.1 kB / 0.5469 GB, free: 12.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.1429, allocations: 89.17 kB / 0.547 GB, free: 12.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.1432, allocations: 266.9 kB / 0.5472 GB, free: 12.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.1432, allocations: 29.64 kB / 0.5472 GB, free: 12.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.1434, allocations: 200 kB / 0.5474 GB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.928e-05/0.1434, allocations: 59.5 kB / 0.5475 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.71e-05/0.1435, allocations: 45.66 kB / 0.5475 GB, free: 12.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1436, allocations: 334.8 kB / 0.5479 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.1437, allocations: 51.97 kB / 0.5479 GB, free: 11.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.1439, allocations: 152.8 kB / 0.548 GB, free: 11.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.1442, allocations: 240.6 kB / 0.5483 GB, free: 11.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1442, allocations: 4 kB / 0.5483 GB, free: 11.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003947/0.1446, allocations: 249.1 kB / 0.5485 GB, free: 10.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1447, allocations: 11.94 kB / 0.5485 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1447, allocations: 4 kB / 0.5485 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1447, allocations: 4 kB / 0.5485 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.1449, allocations: 51.84 kB / 0.5486 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1449, allocations: 4 kB / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.145, allocations: 8.438 kB / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.145, allocations: 12 kB / 0.5486 GB, free: 10.86 MB / 414.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.000169/0.1452, allocations: 169.6 kB / 0.5488 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/0.1453, allocations: 27.81 kB / 0.5488 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003602/0.1456, allocations: 195.3 kB / 0.549 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1456, allocations: 3.938 kB / 0.549 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.1456, allocations: 0 / 0.549 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1456, allocations: 4 kB / 0.549 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007344/0.1464, allocations: 0.5527 MB / 0.5495 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.1464, allocations: 7.969 kB / 0.5495 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.1465, allocations: 31.92 kB / 0.5496 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1465, allocations: 0 / 0.5496 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.1466, allocations: 4 kB / 0.5496 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1466, allocations: 4 kB / 0.5496 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1466, allocations: 0 / 0.5496 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.1469, allocations: 296.9 kB / 0.5499 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.117e-05/0.147, allocations: 104.8 kB / 0.55 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.147, allocations: 4 kB / 0.55 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.1472, allocations: 4 kB / 0.55 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.1472, allocations: 11.98 kB / 0.55 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.1472, allocations: 4 kB / 0.55 GB, free: 9.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.1474, allocations: 186 kB / 0.5502 GB, free: 9.156 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1474, allocations: 4 kB / 0.5502 GB, free: 9.152 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.1477, allocations: 51.98 kB / 0.5502 GB, free: 9.102 MB / 414.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.0006754/0.1484, allocations: 0.8193 MB / 0.551 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.1487, allocations: 167.6 kB / 0.5512 GB, free: 8.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1487, allocations: 0 / 0.5512 GB, free: 8.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.1488, allocations: 67.84 kB / 0.5512 GB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.1493, allocations: 62.77 kB / 0.5513 GB, free: 7.965 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1526, allocations: 2.56 MB / 0.5538 GB, free: 5.219 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000519/0.1532, allocations: 0.7831 MB / 0.5546 GB, free: 4.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001573/0.1533, allocations: 42.27 kB / 0.5546 GB, free: 4.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.1535, allocations: 87.41 kB / 0.5547 GB, free: 4.285 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1535, allocations: 0 / 0.5547 GB, free: 4.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.1833, allocations: 4.978 MB / 0.5595 GB, free: 15.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/8.597, allocations: 3.938 kB / 0.5596 GB, free: 15.4 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.551070608998998] Failed to read output from testmodel.py, exit status != 0: 8.6694078349974 8.685399517 8.545325554 Calling exit ...