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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.004023/0.004023, allocations: 92.69 kB / 15.91 MB, free: 6.281 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.0009426/0.0009426, allocations: 200.2 kB / 16.84 MB, free: 6.195 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.205/1.205, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1509/0.1509, allocations: 8.083 MB / 298.7 MB, free: 2.059 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 55.91 kB / 361 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09206, allocations: 51.52 MB / 412.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003335/0.09543, allocations: 2.462 MB / 415 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.09748, allocations: 1.719 MB / 416.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.494e-05/0.09758, allocations: 8 kB / 416.7 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003442/0.09794, allocations: 135.4 kB / 416.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.0983, allocations: 187 kB / 417 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001534/0.09984, allocations: 1.011 MB / 418.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.1003, allocations: 445.9 kB / 418.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1005, allocations: 144.4 kB / 418.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.1007, allocations: 175.3 kB / 418.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.101, allocations: 243 kB / 419 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.101, allocations: 28 kB / 419.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003375/0.1014, allocations: 235.8 kB / 419.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.786e-05/0.1015, allocations: 83.61 kB / 419.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.1016, allocations: 218.9 kB / 419.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.1022, allocations: 0.6312 MB / 420.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.1022, allocations: 0 / 420.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1022, allocations: 0 / 420.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1022, allocations: 0 / 420.2 MB, free: 2.414 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003259/0.1055, allocations: 1.179 MB / 421.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.1055, allocations: 15.97 kB / 421.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.1058, allocations: 60.45 kB / 421.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.1062, allocations: 367.3 kB / 421.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.1062, allocations: 29.03 kB / 421.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.406e-05/0.1063, allocations: 36.38 kB / 421.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006426/0.1069, allocations: 450.5 kB / 422.3 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.107, allocations: 192 / 422.3 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.107, allocations: 15.94 kB / 422.4 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.107, allocations: 12 kB / 422.4 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006163/0.1076, allocations: 454.5 kB / 422.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.1098, allocations: 1.983 MB / 424.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.1108, allocations: 0.6846 MB / 425.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003729/0.1112, allocations: 297.2 kB / 425.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.305e-05/0.1112, allocations: 7.984 kB / 425.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005663/0.1118, allocations: 480.5 kB / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.1118, allocations: 3.984 kB / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.00543/0.1173, allocations: 1.795 MB / 428 MB, free: 10.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.366e-05/0.1174, allocations: 196.4 kB / 428.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.1177, allocations: 306.9 kB / 428.5 MB, free: 9.621 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.264e-05/0.1177, allocations: 37.7 kB / 428.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.114e-05/0.1178, allocations: 172.8 kB / 428.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.1179, allocations: 161.6 kB / 428.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.1181, allocations: 106.2 kB / 429 MB, free: 9.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1182, allocations: 346.8 kB / 429.3 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003823/0.1186, allocations: 277.1 kB / 429.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/0.1191, allocations: 339.8 kB / 429.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006868/0.1259, allocations: 2.089 MB / 432 MB, free: 6.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.126, allocations: 0 / 432 MB, free: 6.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002555/0.1285, allocations: 1.192 MB / 433.2 MB, free: 4.824 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.1286, allocations: 33.7 kB / 433.3 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.1286, allocations: 3.938 kB / 433.3 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002122/0.1307, allocations: 0.5217 MB / 433.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.131, allocations: 75.91 kB / 433.9 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004895/0.1359, allocations: 3.641 MB / 437.5 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.1362, allocations: 43.53 kB / 437.5 MB, free: 384 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.1363, allocations: 27.98 kB / 437.6 MB, free: 356 kB / 366.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.0002366/0.1365, allocations: 228.8 kB / 437.8 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.05e-05/0.1366, allocations: 39.53 kB / 437.8 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1516/0.2882, allocations: 1.129 MB / 439 MB, free: 57.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.2882, allocations: 5.031 kB / 439 MB, free: 57.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2882, allocations: 4.188 kB / 439 MB, free: 57.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2882, allocations: 3.188 kB / 439 MB, free: 57.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/0.2911, allocations: 1.822 MB / 440.8 MB, free: 56.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2911, allocations: 3.125 kB / 440.8 MB, free: 56.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.2912, allocations: 53.75 kB / 440.9 MB, free: 56.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/0.2933, allocations: 0.5028 MB / 441.4 MB, free: 56.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.743e-05/0.2933, allocations: 16.64 kB / 441.4 MB, free: 56.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003976/0.2973, allocations: 3.595 MB / 445 MB, free: 54.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2973, allocations: 0 / 445 MB, free: 54.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.2995, allocations: 1.193 MB / 446.2 MB, free: 54.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.2996, allocations: 123.3 kB / 446.3 MB, free: 54.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.503e-05/0.2996, allocations: 14.75 kB / 446.3 MB, free: 54.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.2999, allocations: 21.64 kB / 446.3 MB, free: 54.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3, allocations: 38.02 kB / 446.4 MB, free: 54.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.3001, allocations: 22.67 kB / 446.4 MB, free: 54.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.3003, allocations: 221 kB / 446.6 MB, free: 54.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3003, allocations: 0 / 446.6 MB, free: 54.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005356/0.3008, allocations: 184.5 kB / 446.8 MB, free: 54.01 MB / 366.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.0001855/0.301, allocations: 127.1 kB / 446.9 MB, free: 53.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.3025, allocations: 0.992 MB / 447.9 MB, free: 53.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3025, allocations: 0 / 447.9 MB, free: 53.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009503/0.3034, allocations: 0.684 MB / 448.6 MB, free: 52.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.3038, allocations: 40.92 kB / 448.6 MB, free: 52.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.3048, allocations: 0.9383 MB / 449.5 MB, free: 52.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.305, allocations: 0.8067 MB / 450.4 MB, free: 51.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.3051, allocations: 50.16 kB / 450.4 MB, free: 51.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.3052, allocations: 37.78 kB / 450.4 MB, free: 51.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3052, allocations: 3.906 kB / 450.4 MB, free: 51.67 MB / 366.1 MB Notification: Performance of Templates: time 0.01226/0.3175, allocations: 10.73 MB / 461.2 MB, free: 50.94 MB / 366.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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)