Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001077/0.001078, allocations: 87 kB / 16.31 MB, free: 6.449 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.001278/0.001279, allocations: 178.1 kB / 17.21 MB, free: 6.32 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.443/1.443, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1971/0.1971, allocations: 38.09 MB / 330.4 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004747, allocations: 8 kB / 400.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1266, allocations: 59.17 MB / 459.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005689/0.1324, allocations: 4.439 MB / 463.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.136, allocations: 1.614 MB / 465.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004838/0.1365, allocations: 19.88 kB / 465.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000343/0.1369, allocations: 79.33 kB / 465.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009441/0.1378, allocations: 294.6 kB / 465.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007982/0.1386, allocations: 235.6 kB / 466 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009337/0.1396, allocations: 0.7443 MB / 466.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008552/0.1405, allocations: 422.5 kB / 467.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004798/0.141, allocations: 227 kB / 467.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006171/0.1416, allocations: 367 kB / 467.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.1417, allocations: 20 kB / 467.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005093/0.1422, allocations: 179.7 kB / 467.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1425, allocations: 215.5 kB / 468.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.1427, allocations: 105.5 kB / 468.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005412/0.1432, allocations: 0.491 MB / 468.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1432, allocations: 4 kB / 468.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1432, allocations: 0 / 468.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.1433, allocations: 0 / 468.8 MB, free: 13.8 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001207/0.1445, allocations: 0.6879 MB / 469.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1445, allocations: 12.03 kB / 469.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.1447, allocations: 82.52 kB / 469.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005756/0.1452, allocations: 87.38 kB / 469.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.1459, allocations: 398 kB / 470 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.1459, allocations: 28.98 kB / 470 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.146, allocations: 47.89 kB / 470.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009855/0.147, allocations: 0.6953 MB / 470.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1471, allocations: 3.938 kB / 470.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/0.1471, allocations: 19.98 kB / 470.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001942/0.1473, allocations: 68.94 kB / 470.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009711/0.1483, allocations: 0.6635 MB / 471.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.1516, allocations: 2.654 MB / 474.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004865/0.1521, allocations: 321.3 kB / 474.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.1523, allocations: 205.7 kB / 474.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.1524, allocations: 11.92 kB / 474.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1524, allocations: 34.56 kB / 474.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.843e-06/0.1524, allocations: 4 kB / 474.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.001975/0.1544, allocations: 1.28 MB / 476 MB, free: 6.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.1545, allocations: 85.11 kB / 476.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.1548, allocations: 295.2 kB / 476.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1548, allocations: 29.7 kB / 476.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.155, allocations: 251.6 kB / 476.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.1551, allocations: 146.1 kB / 476.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.1551, allocations: 11.98 kB / 476.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1552, allocations: 342.8 kB / 477.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000251/0.1555, allocations: 184.9 kB / 477.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.1559, allocations: 333.2 kB / 477.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/0.1562, allocations: 247.8 kB / 477.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1562, allocations: 4 kB / 477.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0011/0.1573, allocations: 0.6667 MB / 478.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1574, allocations: 4 kB / 478.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007572/0.1581, allocations: 0.4917 MB / 479.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.1585, allocations: 113.5 kB / 479.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.1588, allocations: 83.88 kB / 479.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002716/0.1616, allocations: 3.014 MB / 482.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.1619, allocations: 27.94 kB / 482.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-05/0.162, allocations: 16 kB / 482.3 MB, free: 15.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003215/0.1623, allocations: 213.7 kB / 482.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1624, allocations: 27.62 kB / 482.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007291/0.1631, allocations: 476.5 kB / 483 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/0.1632, allocations: 11.98 kB / 483 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.1632, allocations: 0 / 483 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1632, allocations: 0 / 483 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.1647, allocations: 1.021 MB / 484.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.1647, allocations: 4 kB / 484.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.1651, allocations: 63.89 kB / 484.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.1651, allocations: 4 kB / 484.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.1651, allocations: 12 kB / 484.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1651, allocations: 0 / 484.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/0.1652, allocations: 7.953 kB / 484.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.1662, allocations: 0.7474 MB / 484.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.1664, allocations: 136.7 kB / 485 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/0.1665, allocations: 8 kB / 485 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.1667, allocations: 19.97 kB / 485.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.1668, allocations: 15.94 kB / 485.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.1668, allocations: 16 kB / 485.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.167, allocations: 203.1 kB / 485.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.167, allocations: 0 / 485.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006188/0.1677, allocations: 112 kB / 485.4 MB, free: 12.25 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.001394/0.1691, allocations: 1.308 MB / 486.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.1703, allocations: 0.709 MB / 487.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.1703, allocations: 0 / 487.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002927/0.1707, allocations: 211.8 kB / 487.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005467/0.1712, allocations: 67.62 kB / 487.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/0.1756, allocations: 2.957 MB / 490.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005648/0.1762, allocations: 0.8743 MB / 491.5 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003232/0.1766, allocations: 103.2 kB / 491.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.1768, allocations: 139.4 kB / 491.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1768, allocations: 0 / 491.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.1984, allocations: 7.672 MB / 499.4 MB, free: 14.2 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.1986, allocations: 212.3 kB / 499.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.153, allocations: 0 / 499.6 MB, free: 13.95 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat does not exist to compare? outputFormat=mat