Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009991/0.0009991, allocations: 85.14 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 180.4 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.1 MB / 330.4 MB, free: 8.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003735, allocations: 8 kB / 400.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.135, allocations: 59.17 MB / 459.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.00563/0.1407, allocations: 4.602 MB / 463.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.1435, allocations: 1.555 MB / 465.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002639/0.1438, allocations: 23.81 kB / 465.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.1441, allocations: 79.38 kB / 465.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006196/0.1447, allocations: 254.7 kB / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006534/0.1453, allocations: 247.5 kB / 466.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006871/0.146, allocations: 0.6586 MB / 466.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008928/0.1469, allocations: 0.5359 MB / 467.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.1473, allocations: 215 kB / 467.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004504/0.1477, allocations: 303.1 kB / 467.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.253e-05/0.1478, allocations: 23.94 kB / 467.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.148, allocations: 95.84 kB / 467.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.1483, allocations: 203.5 kB / 468.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.1485, allocations: 113.4 kB / 468.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.1489, allocations: 450.9 kB / 468.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1489, allocations: 0 / 468.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1489, allocations: 0 / 468.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.149, allocations: 0 / 468.7 MB, free: 13.95 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001132/0.1501, allocations: 0.6879 MB / 469.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1501, allocations: 8.031 kB / 469.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.379e-05/0.1502, allocations: 86.53 kB / 469.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005744/0.1508, allocations: 99.19 kB / 469.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/0.1514, allocations: 391 kB / 469.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.1514, allocations: 32.98 kB / 469.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.1516, allocations: 51.91 kB / 470 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008616/0.1524, allocations: 0.6411 MB / 470.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1525, allocations: 7.938 kB / 470.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.283e-05/0.1525, allocations: 19.98 kB / 470.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.1526, allocations: 36.98 kB / 470.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008409/0.1535, allocations: 487.4 kB / 471.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003383/0.1569, allocations: 3.007 MB / 474.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000288/0.1572, allocations: 185 kB / 474.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.1573, allocations: 105.7 kB / 474.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.1574, allocations: 3.984 kB / 474.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.1574, allocations: 42.56 kB / 474.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.114e-06/0.1574, allocations: 0 / 474.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001471/0.1589, allocations: 0.8345 MB / 475.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.159, allocations: 77.11 kB / 475.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.1593, allocations: 341.5 kB / 475.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.1593, allocations: 37.64 kB / 475.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.1595, allocations: 303.1 kB / 476.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.395e-05/0.1596, allocations: 82.92 kB / 476.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.05e-05/0.1596, allocations: 8 kB / 476.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1598, allocations: 342.8 kB / 476.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.16, allocations: 124.8 kB / 476.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004382/0.1605, allocations: 327 kB / 477 MB, free: 5.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.1608, allocations: 198.7 kB / 477.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1608, allocations: 0 / 477.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009467/0.1618, allocations: 0.5528 MB / 477.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.1618, allocations: 8.844 kB / 477.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004954/0.1623, allocations: 278.7 kB / 478 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003433/0.1627, allocations: 84.72 kB / 478.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/0.163, allocations: 95.83 kB / 478.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/0.1647, allocations: 1.601 MB / 479.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.165, allocations: 19.95 kB / 479.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.1651, allocations: 27.92 kB / 479.8 MB, free: 2.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002808/0.1653, allocations: 209.7 kB / 480 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.788e-05/0.1654, allocations: 31.69 kB / 480 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004782/0.1659, allocations: 296.5 kB / 480.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1659, allocations: 4 kB / 480.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.1659, allocations: 0 / 480.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1659, allocations: 4 kB / 480.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.1674, allocations: 0.7923 MB / 481.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1674, allocations: 4 kB / 481.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002865/0.1677, allocations: 55.89 kB / 481.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.1677, allocations: 4 kB / 481.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.1677, allocations: 4 kB / 481.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1677, allocations: 4 kB / 481.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.1677, allocations: 3.953 kB / 481.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006861/0.1684, allocations: 486.1 kB / 481.7 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1686, allocations: 108.8 kB / 481.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.1686, allocations: 8 kB / 481.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1688, allocations: 8.031 kB / 481.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.328e-05/0.1688, allocations: 23.88 kB / 481.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.1689, allocations: 11.98 kB / 481.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002672/0.1691, allocations: 235.2 kB / 482.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1691, allocations: 0 / 482.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005011/0.1696, allocations: 92 kB / 482.2 MB, free: 15.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009611/0.1706, allocations: 1.007 MB / 483.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000864/0.1715, allocations: 443.8 kB / 483.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1715, allocations: 4 kB / 483.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.1717, allocations: 103.9 kB / 483.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/0.1722, allocations: 69.34 kB / 483.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.1761, allocations: 2.668 MB / 486.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.1766, allocations: 0.8626 MB / 487.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.177, allocations: 115.2 kB / 487.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.1772, allocations: 147.4 kB / 487.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1772, allocations: 4 kB / 487.6 MB, free: 10 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.1978, allocations: 6.986 MB / 494.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.198, allocations: 215.5 kB / 494.8 MB, free: 2.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.098, allocations: 0 / 494.8 MB, free: 2.957 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat does not exist to compare? outputFormat=mat