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: translateModel(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") translateModel(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 108.1 kB / 17.07 MB, free: 6.062 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.001148/0.001148, allocations: 194.9 kB / 18.01 MB, free: 5.152 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0461/0.0461, allocations: 8.104 MB / 300 MB, free: 6.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 75.88 kB / 363.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1928, allocations: 51.5 MB / 414.7 MB, free: 25.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002572/0.1954, allocations: 2.438 MB / 417.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.197, allocations: 1.722 MB / 418.8 MB, free: 21.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1972, allocations: 4 kB / 418.8 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003452/0.1975, allocations: 167 kB / 419 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.1979, allocations: 206.7 kB / 419.2 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.1994, allocations: 1.031 MB / 420.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.1999, allocations: 481.8 kB / 420.7 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.2001, allocations: 168.2 kB / 420.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2003, allocations: 191.3 kB / 421.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.2005, allocations: 251 kB / 421.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.2006, allocations: 44 kB / 421.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.2009, allocations: 255.8 kB / 421.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.033e-05/0.201, allocations: 103.6 kB / 421.7 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.2011, allocations: 234.8 kB / 421.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.2016, allocations: 0.6443 MB / 422.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2016, allocations: 0 / 422.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2017, allocations: 4 kB / 422.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2017, allocations: 0 / 422.6 MB, free: 17.53 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.00311/0.2048, allocations: 1.174 MB / 423.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.2048, allocations: 11.89 kB / 423.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.2051, allocations: 68.28 kB / 423.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.2055, allocations: 363.5 kB / 424.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.2055, allocations: 25.03 kB / 424.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.2055, allocations: 36.38 kB / 424.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005915/0.2061, allocations: 450.5 kB / 424.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2062, allocations: 192 / 424.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.2062, allocations: 23.94 kB / 424.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2062, allocations: 8 kB / 424.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005168/0.2067, allocations: 454.4 kB / 425.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.2086, allocations: 1.975 MB / 427.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000895/0.2095, allocations: 0.7004 MB / 427.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.2098, allocations: 297.2 kB / 428.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.909e-05/0.2099, allocations: 15.98 kB / 428.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005576/0.2105, allocations: 464.6 kB / 428.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.844e-06/0.2105, allocations: 0 / 428.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005073/0.2156, allocations: 1.802 MB / 430.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.2156, allocations: 192.4 kB / 430.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.2159, allocations: 310.9 kB / 430.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.216, allocations: 37.7 kB / 430.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.408e-05/0.2161, allocations: 176.8 kB / 431.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.2162, allocations: 157.7 kB / 431.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.2163, allocations: 106.2 kB / 431.4 MB, free: 8.254 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.018e-05/0.2164, allocations: 346.8 kB / 431.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.2168, allocations: 277.1 kB / 432 MB, free: 7.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.2171, allocations: 339.8 kB / 432.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006411/0.2235, allocations: 2.074 MB / 434.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.2236, allocations: 4 kB / 434.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002308/0.2259, allocations: 1.188 MB / 435.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.2259, allocations: 36.36 kB / 435.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.2259, allocations: 7.938 kB / 435.6 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/0.228, allocations: 0.5236 MB / 436.1 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.2283, allocations: 79.91 kB / 436.2 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004762/0.233, allocations: 3.95 MB / 440.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.2334, allocations: 55.36 kB / 440.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.2335, allocations: 20 kB / 440.2 MB, free: 15.16 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.000278/0.2338, allocations: 228.2 kB / 440.5 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.127e-05/0.2339, allocations: 39.61 kB / 440.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002614/0.2365, allocations: 1.133 MB / 441.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2365, allocations: 8 kB / 441.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2365, allocations: 3.984 kB / 441.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2365, allocations: 0 / 441.6 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/0.2397, allocations: 1.83 MB / 443.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2397, allocations: 7.938 kB / 443.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.2399, allocations: 43.97 kB / 443.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/0.242, allocations: 0.5081 MB / 444 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.2421, allocations: 15.98 kB / 444 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005516/0.2476, allocations: 3.916 MB / 448 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2476, allocations: 0 / 448 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.2502, allocations: 1.184 MB / 449.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.2503, allocations: 124.5 kB / 449.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.2504, allocations: 12 kB / 449.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/0.2507, allocations: 23.92 kB / 449.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.2509, allocations: 48.38 kB / 449.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.2509, allocations: 16 kB / 449.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.2512, allocations: 214 kB / 449.6 MB, free: 5.531 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.2512, allocations: 0 / 449.6 MB, free: 5.531 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.2518, allocations: 195.8 kB / 449.8 MB, free: 5.34 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.0002506/0.2521, allocations: 139.2 kB / 449.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.2539, allocations: 0.9886 MB / 450.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2539, allocations: 0 / 450.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.2552, allocations: 0.6842 MB / 451.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.2556, allocations: 36.89 kB / 451.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.2569, allocations: 0.7873 MB / 452.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.2573, allocations: 0.8094 MB / 453.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.2575, allocations: 47.23 kB / 453.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.667e-05/0.2576, allocations: 35.44 kB / 453.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2576, allocations: 0 / 453.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of Templates: time 0.01735/0.2749, allocations: 11.38 MB / 464.7 MB, free: 6.367 MB / 334.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)