Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001209/0.001209, allocations: 91.52 kB / 16.31 MB, free: 5.559 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.00152/0.00152, allocations: 179.3 kB / 17.21 MB, free: 5.48 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.542/1.542, allocations: 223.3 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.196/0.196, allocations: 38.09 MB / 330.4 MB, free: 8.617 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003342, allocations: 8 kB / 400.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1413, allocations: 59.17 MB / 459.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007329/0.1486, allocations: 6.516 MB / 465.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004288/0.153, allocations: 2.21 MB / 468.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000658/0.1537, allocations: 39.75 kB / 468.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004328/0.1541, allocations: 150.9 kB / 468.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001195/0.1553, allocations: 445.8 kB / 468.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.1566, allocations: 395.2 kB / 469.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.158, allocations: 1.15 MB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001428/0.1594, allocations: 0.7768 MB / 471 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000654/0.1601, allocations: 350.4 kB / 471.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007744/0.1609, allocations: 0.522 MB / 471.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-05/0.161, allocations: 28 kB / 471.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004362/0.1614, allocations: 159.7 kB / 472 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003777/0.1618, allocations: 391.1 kB / 472.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.162, allocations: 165.3 kB / 472.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007689/0.1628, allocations: 0.752 MB / 473.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.1628, allocations: 0 / 473.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1628, allocations: 0 / 473.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1628, allocations: 0 / 473.3 MB, free: 9.207 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001631/0.1645, allocations: 0.9351 MB / 474.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.1645, allocations: 12.03 kB / 474.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.1647, allocations: 131.1 kB / 474.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006626/0.1654, allocations: 138.9 kB / 474.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007942/0.1662, allocations: 0.5077 MB / 475 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.519e-05/0.1662, allocations: 54 kB / 475.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.1663, allocations: 79.98 kB / 475.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.168, allocations: 1.118 MB / 476.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.168, allocations: 3.938 kB / 476.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.228e-05/0.1681, allocations: 39.98 kB / 476.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.741e-05/0.1682, allocations: 61.91 kB / 476.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.1695, allocations: 0.8545 MB / 477.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.1751, allocations: 5.063 MB / 482.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007114/0.1758, allocations: 413 kB / 482.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.1761, allocations: 209.6 kB / 482.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.846e-05/0.1762, allocations: 11.98 kB / 482.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1762, allocations: 46.48 kB / 483 MB, free: 15.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 3.016e-06/0.1762, allocations: 0 / 483 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001879/0.1781, allocations: 1.072 MB / 484.1 MB, free: 14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.1782, allocations: 81.11 kB / 484.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005401/0.1787, allocations: 0.49 MB / 484.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.339e-05/0.1788, allocations: 29.7 kB / 484.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.1791, allocations: 457.9 kB / 485.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.1793, allocations: 161.7 kB / 485.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.1793, allocations: 16 kB / 485.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1795, allocations: 370.7 kB / 485.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.1798, allocations: 233.8 kB / 485.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006332/0.1805, allocations: 0.6131 MB / 486.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005041/0.181, allocations: 365.3 kB / 486.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.181, allocations: 4 kB / 486.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00126/0.1823, allocations: 0.8885 MB / 487.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.1823, allocations: 12 kB / 487.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.1823, allocations: 12 kB / 487.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.201e-05/0.1824, allocations: 20 kB / 487.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006867/0.1831, allocations: 223.5 kB / 488 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.818e-05/0.1831, allocations: 27.92 kB / 488 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.1835, allocations: 48.22 kB / 488.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/0.1836, allocations: 51.98 kB / 488.1 MB, free: 9.688 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003994/0.184, allocations: 305.3 kB / 488.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/0.1841, allocations: 51.34 kB / 488.5 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009143/0.185, allocations: 0.5602 MB / 489 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.185, allocations: 8 kB / 489 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.185, allocations: 0 / 489 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.185, allocations: 7.922 kB / 489 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00193/0.187, allocations: 1.321 MB / 490.4 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.187, allocations: 4 kB / 490.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003971/0.1874, allocations: 111.8 kB / 490.5 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.295e-06/0.1874, allocations: 4 kB / 490.5 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.1874, allocations: 15.94 kB / 490.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.1875, allocations: 8 kB / 490.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.1875, allocations: 0 / 490.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007483/0.1882, allocations: 0.6459 MB / 491.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.1883, allocations: 128.3 kB / 491.3 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.741e-05/0.1884, allocations: 15.98 kB / 491.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.1886, allocations: 23.94 kB / 491.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.1887, allocations: 35.89 kB / 491.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.1887, allocations: 16 kB / 491.4 MB, free: 6.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003337/0.1891, allocations: 330.8 kB / 491.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1891, allocations: 0 / 491.7 MB, free: 5.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006904/0.1898, allocations: 156 kB / 491.8 MB, free: 5.809 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 50 * 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.001071/0.1909, allocations: 1.193 MB / 493 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009204/0.1918, allocations: 0.6032 MB / 493.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1918, allocations: 11.94 kB / 493.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.1921, allocations: 231.7 kB / 493.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/0.1928, allocations: 101.8 kB / 494 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005482/0.1983, allocations: 3.958 MB / 497.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006531/0.199, allocations: 0.9999 MB / 498.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006084/0.1996, allocations: 229 kB / 499.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.2, allocations: 251.4 kB / 499.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2, allocations: 0 / 499.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.2254, allocations: 10.8 MB / 0.4982 GB, free: 3.266 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.2256, allocations: 192.9 kB / 0.4984 GB, free: 3.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.258/2.484, allocations: 0 / 0.4984 GB, free: 3.016 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat does not exist to compare? outputFormat=mat