Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",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.001037/0.001037, allocations: 106.2 kB / 16.03 MB, free: 6.316 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.001064/0.001064, allocations: 195.4 kB / 16.95 MB, free: 6.145 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.26/1.26, allocations: 222.9 MB / 240.6 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04031/0.04031, allocations: 8.103 MB / 298.9 MB, free: 6.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.91 kB / 361.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1594, allocations: 51.51 MB / 412.8 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002317/0.1617, allocations: 2.472 MB / 415.3 MB, free: 23.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.1635, allocations: 1.699 MB / 417 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1636, allocations: 4 kB / 417 MB, free: 21.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.1639, allocations: 143.3 kB / 417.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003174/0.1642, allocations: 190.9 kB / 417.3 MB, free: 21.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.1654, allocations: 0.9614 MB / 418.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.1657, allocations: 473.8 kB / 418.8 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.1659, allocations: 164.2 kB / 418.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.166, allocations: 199.3 kB / 419.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.1662, allocations: 247 kB / 419.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.1663, allocations: 44 kB / 419.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.1666, allocations: 259.8 kB / 419.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.582e-05/0.1666, allocations: 95.61 kB / 419.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1667, allocations: 230.9 kB / 420 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.1671, allocations: 0.6487 MB / 420.6 MB, free: 17.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1672, allocations: 0 / 420.6 MB, free: 17.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1672, allocations: 0 / 420.6 MB, free: 17.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1672, allocations: 4 kB / 420.6 MB, free: 17.92 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.002852/0.17, allocations: 1.175 MB / 421.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.1701, allocations: 11.89 kB / 421.8 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.584e-05/0.1701, allocations: 74.66 kB / 421.9 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.1703, allocations: 64.36 kB / 421.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1706, allocations: 359.5 kB / 422.3 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.1707, allocations: 29.03 kB / 422.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.1707, allocations: 36.38 kB / 422.4 MB, free: 16.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.1713, allocations: 450.5 kB / 422.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1713, allocations: 11.94 kB / 422.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.1713, allocations: 8 kB / 422.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1713, allocations: 8 kB / 422.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004632/0.1718, allocations: 454.5 kB / 423.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.1734, allocations: 1.987 MB / 425.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007875/0.1742, allocations: 0.6962 MB / 426 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.1745, allocations: 297.2 kB / 426.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.051e-05/0.1745, allocations: 7.984 kB / 426.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.175, allocations: 472.6 kB / 426.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.613e-06/0.175, allocations: 4 kB / 426.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.004931/0.1799, allocations: 1.795 MB / 428.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.18, allocations: 196.3 kB / 428.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.1802, allocations: 314.8 kB / 429 MB, free: 9.039 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.1802, allocations: 37.7 kB / 429 MB, free: 8.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.116e-05/0.1803, allocations: 176.8 kB / 429.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.1804, allocations: 157.7 kB / 429.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1805, allocations: 102.2 kB / 429.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.1806, allocations: 346.8 kB / 429.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.1809, allocations: 273.1 kB / 430.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.1813, allocations: 347.8 kB / 430.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006295/0.1876, allocations: 2.082 MB / 432.5 MB, free: 5.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1876, allocations: 3.938 kB / 432.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002186/0.1898, allocations: 1.188 MB / 433.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.1898, allocations: 41.64 kB / 433.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1898, allocations: 0 / 433.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/0.1918, allocations: 0.5236 MB / 434.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.192, allocations: 79.89 kB / 434.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02486/0.2169, allocations: 3.968 MB / 438.3 MB, free: 15.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.2174, allocations: 51.42 kB / 438.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-05/0.2175, allocations: 20 kB / 438.4 MB, free: 15.44 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003496/0.2178, allocations: 227.7 kB / 438.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.218, allocations: 35.62 kB / 438.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.2209, allocations: 1.133 MB / 439.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.2209, allocations: 4 kB / 439.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2209, allocations: 3.984 kB / 439.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.221, allocations: 0 / 439.8 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.2241, allocations: 1.83 MB / 441.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2241, allocations: 0 / 441.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2242, allocations: 55.91 kB / 441.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/0.2263, allocations: 0.5067 MB / 442.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.2263, allocations: 19.98 kB / 442.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004916/0.2312, allocations: 3.913 MB / 446.1 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2312, allocations: 0 / 446.1 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.2337, allocations: 1.191 MB / 447.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.2338, allocations: 124.5 kB / 447.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.702e-05/0.2338, allocations: 11.94 kB / 447.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.2341, allocations: 23.98 kB / 447.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.2343, allocations: 36.39 kB / 447.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.2343, allocations: 19.98 kB / 447.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.2345, allocations: 222 kB / 447.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2345, allocations: 3.938 kB / 447.7 MB, free: 5.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005154/0.235, allocations: 183.8 kB / 447.9 MB, free: 5.625 MB / 318.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002726/0.2378, allocations: 1.759 MB / 449.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.2395, allocations: 1.012 MB / 450.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2395, allocations: 0 / 450.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.2406, allocations: 0.6801 MB / 451.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.241, allocations: 48.88 kB / 451.4 MB, free: 2.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008152/0.2492, allocations: 5.419 MB / 456.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2495, allocations: 0.8094 MB / 457.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.2497, allocations: 51.42 kB / 457.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.2498, allocations: 127.4 kB / 457.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2498, allocations: 4 kB / 457.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5054/0.7552, allocations: 14.9 MB / 472.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/0.7555, allocations: 234.3 kB / 472.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.8, allocations: 10.75 kB / 472.9 MB, free: 12.5 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)