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.001741/0.001741, allocations: 110.3 kB / 17.08 MB, free: 5.777 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.00169/0.001691, allocations: 195 kB / 18.02 MB, free: 4.953 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05607/0.05607, allocations: 8.096 MB / 300 MB, free: 6.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001422, allocations: 63.89 kB / 363.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.256, allocations: 51.51 MB / 414.7 MB, free: 25.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.00305/0.2591, allocations: 2.447 MB / 417.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.2611, allocations: 1.707 MB / 418.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2612, allocations: 8 kB / 418.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004808/0.2617, allocations: 167 kB / 419 MB, free: 21.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005388/0.2623, allocations: 210.7 kB / 419.2 MB, free: 20.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001745/0.2641, allocations: 1.031 MB / 420.3 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005645/0.2646, allocations: 493.8 kB / 420.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.2649, allocations: 160.2 kB / 420.9 MB, free: 19.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.2651, allocations: 203.2 kB / 421.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.2654, allocations: 251 kB / 421.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.2654, allocations: 44 kB / 421.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003934/0.2658, allocations: 247.8 kB / 421.6 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-05/0.2659, allocations: 99.61 kB / 421.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.2661, allocations: 234.8 kB / 421.9 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005747/0.2667, allocations: 0.6521 MB / 422.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2667, allocations: 0 / 422.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2667, allocations: 0 / 422.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2667, allocations: 0 / 422.6 MB, free: 17.54 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.003103/0.2698, allocations: 1.175 MB / 423.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.2698, allocations: 8.031 kB / 423.8 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.2701, allocations: 68.34 kB / 423.8 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003621/0.2705, allocations: 359.5 kB / 424.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.2705, allocations: 29.03 kB / 424.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/0.2706, allocations: 32.38 kB / 424.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005951/0.2712, allocations: 458.5 kB / 424.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2712, allocations: 192 / 424.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.2712, allocations: 15.94 kB / 424.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2712, allocations: 8 kB / 424.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005662/0.2718, allocations: 454.5 kB / 425.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2736, allocations: 1.972 MB / 427.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008762/0.2745, allocations: 0.7004 MB / 427.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.2749, allocations: 297.2 kB / 428.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.489e-05/0.2749, allocations: 7.984 kB / 428.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005407/0.2755, allocations: 476.5 kB / 428.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.944e-06/0.2755, allocations: 0 / 428.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005008/0.2805, allocations: 1.799 MB / 430.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.2806, allocations: 196.4 kB / 430.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.2809, allocations: 306.9 kB / 430.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.2809, allocations: 37.7 kB / 430.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.84e-05/0.281, allocations: 172.8 kB / 431.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.261e-05/0.2811, allocations: 157.7 kB / 431.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.2813, allocations: 114.2 kB / 431.4 MB, free: 8.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.293e-05/0.2814, allocations: 346.8 kB / 431.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.2817, allocations: 269.1 kB / 432 MB, free: 7.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.2821, allocations: 347.7 kB / 432.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006352/0.2884, allocations: 2.07 MB / 434.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2885, allocations: 0 / 434.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002392/0.2909, allocations: 1.192 MB / 435.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/0.2909, allocations: 33.7 kB / 435.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.2909, allocations: 3.938 kB / 435.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002/0.2929, allocations: 0.5197 MB / 436.1 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.2932, allocations: 83.91 kB / 436.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.2982, allocations: 3.957 MB / 440.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.2987, allocations: 63.36 kB / 440.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.992e-05/0.2987, allocations: 16 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.0003375/0.2991, allocations: 220.3 kB / 440.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.199e-05/0.2992, allocations: 35.62 kB / 440.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.3019, allocations: 1.137 MB / 441.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3019, allocations: 7.938 kB / 441.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3019, allocations: 4 kB / 441.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3019, allocations: 0 / 441.6 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.3052, allocations: 1.826 MB / 443.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3052, allocations: 0 / 443.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.3054, allocations: 55.91 kB / 443.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.3075, allocations: 0.5029 MB / 444 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.863e-05/0.3076, allocations: 19.98 kB / 444 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005573/0.3131, allocations: 3.914 MB / 448 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3132, allocations: 4 kB / 448 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.3157, allocations: 1.181 MB / 449.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.3159, allocations: 124.5 kB / 449.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/0.3159, allocations: 12 kB / 449.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.3162, allocations: 27.92 kB / 449.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3164, allocations: 48.41 kB / 449.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.3164, allocations: 19.98 kB / 449.4 MB, free: 5.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003/0.3167, allocations: 217.9 kB / 449.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3167, allocations: 0 / 449.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008114/0.3176, allocations: 187.8 kB / 449.8 MB, free: 5.355 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.0002709/0.3178, allocations: 131.2 kB / 449.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.32, allocations: 0.9964 MB / 450.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.32, allocations: 0 / 450.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.3211, allocations: 0.6765 MB / 451.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.3216, allocations: 36.89 kB / 451.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.323, allocations: 0.808 MB / 452.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.3235, allocations: 0.8016 MB / 453.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.3237, allocations: 59.31 kB / 453.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.3239, allocations: 31.44 kB / 453.3 MB, free: 1.711 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3239, allocations: 0 / 453.3 MB, free: 1.711 MB / 318.1 MB Notification: Performance of Templates: time 0.02429/0.3482, allocations: 11.37 MB / 464.7 MB, free: 6.383 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 cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)