Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-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(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001003/0.001003, allocations: 104 kB / 16.03 MB, free: 6.258 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.001008/0.001008, allocations: 196 kB / 16.95 MB, free: 6.109 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.287/1.287, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03875/0.03875, allocations: 8.108 MB / 298.9 MB, free: 6.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 63.91 kB / 361.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1576, allocations: 51.52 MB / 412.8 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.001976/0.1596, allocations: 1.812 MB / 414.7 MB, free: 23.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1606, allocations: 1.458 MB / 416.1 MB, free: 22.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.372e-05/0.1607, allocations: 8 kB / 416.1 MB, free: 22.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.161, allocations: 107.6 kB / 416.2 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.1611, allocations: 95.48 kB / 416.3 MB, free: 22.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1622, allocations: 0.8757 MB / 417.2 MB, free: 21.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002153/0.1624, allocations: 226.9 kB / 417.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.1626, allocations: 127.7 kB / 417.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.844e-05/0.1627, allocations: 99.58 kB / 417.6 MB, free: 20.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.1628, allocations: 139.5 kB / 417.8 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.1628, allocations: 20 kB / 417.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.1631, allocations: 211.8 kB / 418 MB, free: 20.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.1631, allocations: 55.77 kB / 418.1 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.398e-05/0.1632, allocations: 119.4 kB / 418.2 MB, free: 20.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.1635, allocations: 405.1 kB / 418.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1635, allocations: 0 / 418.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1635, allocations: 4 kB / 418.6 MB, free: 20.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.1635, allocations: 0 / 418.6 MB, free: 20.01 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001633/0.1651, allocations: 0.7672 MB / 419.3 MB, free: 19.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.1652, allocations: 11.89 kB / 419.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.1652, allocations: 62.72 kB / 419.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.1653, allocations: 24.66 kB / 419.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.1654, allocations: 243.9 kB / 419.7 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1654, allocations: 20.94 kB / 419.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.1655, allocations: 28.38 kB / 419.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.1658, allocations: 305.1 kB / 420 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1658, allocations: 4 kB / 420 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.1659, allocations: 8 kB / 420 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.1659, allocations: 8 kB / 420 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.1662, allocations: 294.1 kB / 420.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009648/0.1672, allocations: 0.8852 MB / 421.2 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.1675, allocations: 290.5 kB / 421.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.1677, allocations: 128.8 kB / 421.6 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.1677, allocations: 4 kB / 421.6 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.008e-05/0.1677, allocations: 38.56 kB / 421.7 MB, free: 16.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.272e-06/0.1677, allocations: 4 kB / 421.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.0009171/0.1687, allocations: 0.5166 MB / 422.2 MB, free: 16.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.674e-05/0.1687, allocations: 55.41 kB / 422.2 MB, free: 16.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.176e-05/0.1688, allocations: 175.3 kB / 422.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1688, allocations: 29.7 kB / 422.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.1689, allocations: 148.3 kB / 422.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.1689, allocations: 82.75 kB / 422.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.969e-05/0.169, allocations: 81.38 kB / 422.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.412e-05/0.169, allocations: 326.8 kB / 423.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.1692, allocations: 128 kB / 423.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.1693, allocations: 132 kB / 423.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.1696, allocations: 297.2 kB / 423.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1696, allocations: 0 / 423.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00051/0.1701, allocations: 402 kB / 424 MB, free: 14.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.1701, allocations: 8 kB / 424 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.798e-06/0.1702, allocations: 0 / 424 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/0.1704, allocations: 52.77 kB / 424.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.1706, allocations: 59.97 kB / 424.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000873/0.1715, allocations: 1.535 MB / 425.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.1717, allocations: 23.72 kB / 425.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.1717, allocations: 12 kB / 425.7 MB, free: 12.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.213e-05/0.1718, allocations: 137.9 kB / 425.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.004e-05/0.1718, allocations: 19.75 kB / 425.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.1723, allocations: 360.5 kB / 426.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1724, allocations: 4 kB / 426.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.1724, allocations: 0 / 426.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1724, allocations: 0 / 426.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.1726, allocations: 369.2 kB / 426.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1726, allocations: 0 / 426.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.1728, allocations: 47.91 kB / 426.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/0.1729, allocations: 44.83 kB / 426.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.173, allocations: 4 kB / 426.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007912/0.1738, allocations: 1.531 MB / 428.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1738, allocations: 7.938 kB / 428.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.1742, allocations: 400.6 kB / 428.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.1742, allocations: 92.86 kB / 428.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.1743, allocations: 16 kB / 428.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.1744, allocations: 4 kB / 428.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.1745, allocations: 15.97 kB / 428.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1745, allocations: 8 kB / 428.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.214e-05/0.1746, allocations: 133.6 kB / 428.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1746, allocations: 0 / 428.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1749, allocations: 83.84 kB / 428.9 MB, free: 9.004 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005846/0.1754, allocations: 0.9511 MB / 429.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.1761, allocations: 435 kB / 430.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1761, allocations: 0 / 430.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.1764, allocations: 250.5 kB / 430.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.1767, allocations: 33.19 kB / 430.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.1788, allocations: 2.605 MB / 433.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.1789, allocations: 0.7398 MB / 433.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.1791, allocations: 29.53 kB / 434 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.1791, allocations: 71.41 kB / 434 MB, free: 3.738 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1792, allocations: 0 / 434 MB, free: 3.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3909/0.57, allocations: 4.736 MB / 438.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.5703, allocations: 212.8 kB / 439 MB, free: 14.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.243, allocations: 3.516 kB / 439 MB, free: 14.89 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)