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.001662/0.001661, allocations: 103 kB / 16.98 MB, free: 6.18 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.001669/0.001669, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.385/1.385, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04873/0.04873, allocations: 8.095 MB / 299.9 MB, free: 6.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 67.84 kB / 362.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2353, allocations: 51.52 MB / 413.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.003031/0.2384, allocations: 2.435 MB / 416.3 MB, free: 23.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.2404, allocations: 1.711 MB / 418.1 MB, free: 21.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.2405, allocations: 4 kB / 418.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003878/0.2409, allocations: 171 kB / 418.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003961/0.2414, allocations: 206.7 kB / 418.4 MB, free: 21.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.2429, allocations: 1.027 MB / 419.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000445/0.2434, allocations: 481.9 kB / 419.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.2436, allocations: 164.2 kB / 420.1 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2437, allocations: 195.3 kB / 420.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.244, allocations: 255 kB / 420.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.369e-05/0.2441, allocations: 44 kB / 420.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003678/0.2444, allocations: 259.8 kB / 420.8 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.097e-05/0.2445, allocations: 91.62 kB / 420.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.2447, allocations: 230.9 kB / 421.1 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005509/0.2452, allocations: 0.6407 MB / 421.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2452, allocations: 3.938 kB / 421.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2453, allocations: 0 / 421.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2453, allocations: 0 / 421.8 MB, free: 17.67 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.003393/0.2487, allocations: 1.179 MB / 423 MB, free: 16.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.2487, allocations: 15.89 kB / 423 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002683/0.249, allocations: 64.34 kB / 423 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.2494, allocations: 359.5 kB / 423.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2494, allocations: 28.97 kB / 423.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.428e-05/0.2495, allocations: 36.38 kB / 423.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.2501, allocations: 446.5 kB / 423.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2501, allocations: 192 / 423.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.2501, allocations: 23.92 kB / 423.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2501, allocations: 8 kB / 423.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005318/0.2507, allocations: 450.5 kB / 424.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.2526, allocations: 1.987 MB / 426.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009081/0.2535, allocations: 0.6965 MB / 427 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.2538, allocations: 301.1 kB / 427.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.518e-05/0.2539, allocations: 15.97 kB / 427.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005639/0.2545, allocations: 468.5 kB / 427.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.2545, allocations: 0 / 427.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005363/0.2599, allocations: 1.799 MB / 429.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.2599, allocations: 192.4 kB / 429.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.2602, allocations: 306.9 kB / 430.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.2603, allocations: 41.7 kB / 430.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.416e-05/0.2604, allocations: 168.8 kB / 430.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.55e-05/0.2605, allocations: 165.6 kB / 430.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.2606, allocations: 106.2 kB / 430.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.2607, allocations: 346.8 kB / 430.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.2611, allocations: 273.1 kB / 431.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003608/0.2614, allocations: 347.7 kB / 431.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006714/0.2681, allocations: 2.082 MB / 433.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.2682, allocations: 0 / 433.6 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002393/0.2706, allocations: 1.191 MB / 434.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.2706, allocations: 36.2 kB / 434.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.2707, allocations: 3.938 kB / 434.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/0.2727, allocations: 0.5275 MB / 435.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.273, allocations: 79.89 kB / 435.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005123/0.2782, allocations: 3.956 MB / 439.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.2787, allocations: 59.36 kB / 439.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.2787, allocations: 24 kB / 439.5 MB, free: 15.27 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.0003106/0.279, allocations: 224.2 kB / 439.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.273e-05/0.2791, allocations: 35.62 kB / 439.7 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.2818, allocations: 1.137 MB / 440.9 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2819, allocations: 8 kB / 440.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2819, allocations: 0 / 440.9 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.2819, allocations: 3.984 kB / 440.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.2852, allocations: 1.838 MB / 442.7 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.2852, allocations: 3.984 kB / 442.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.2854, allocations: 51.92 kB / 442.8 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002218/0.2876, allocations: 0.5024 MB / 443.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.2877, allocations: 20 kB / 443.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005563/0.2932, allocations: 3.907 MB / 447.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2933, allocations: 0 / 447.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.2959, allocations: 1.187 MB / 448.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.2961, allocations: 124.5 kB / 448.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.428e-05/0.2962, allocations: 12 kB / 448.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/0.2965, allocations: 27.92 kB / 448.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2967, allocations: 36.47 kB / 448.6 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.2967, allocations: 19.94 kB / 448.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002533/0.297, allocations: 221.9 kB / 448.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.297, allocations: 0 / 448.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006739/0.2977, allocations: 187.8 kB / 449 MB, free: 5.449 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.000251/0.2979, allocations: 139.1 kB / 449.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.3, allocations: 1.004 MB / 450.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3, allocations: 256 / 450.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.3012, allocations: 0.6801 MB / 450.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.3017, allocations: 43.8 kB / 450.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3032, allocations: 0.8276 MB / 451.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.3036, allocations: 0.8133 MB / 452.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3037, allocations: 39.42 kB / 452.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3037, allocations: 0 / 452.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of Templates: time 0.01203/0.3157, allocations: 7.701 MB / 460.2 MB, free: 10.09 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)