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.001316/0.001316, allocations: 111.2 kB / 16.69 MB, free: 5.871 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.001143/0.001143, allocations: 197.1 kB / 17.61 MB, free: 5.438 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.303/1.303, allocations: 222.9 MB / 241.3 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04773/0.04773, allocations: 8.105 MB / 299.5 MB, free: 6.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 361.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2193, allocations: 51.51 MB / 413.4 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.002852/0.2222, allocations: 2.468 MB / 415.9 MB, free: 23.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.2241, allocations: 1.703 MB / 417.6 MB, free: 21.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.2243, allocations: 4 kB / 417.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004579/0.2248, allocations: 143.4 kB / 417.7 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004079/0.2252, allocations: 183 kB / 417.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.2267, allocations: 0.9611 MB / 418.8 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005102/0.2272, allocations: 473.8 kB / 419.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.2275, allocations: 172.2 kB / 419.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.2276, allocations: 191.3 kB / 419.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.2279, allocations: 255 kB / 419.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.843e-05/0.2279, allocations: 47.94 kB / 420 MB, free: 19.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004115/0.2283, allocations: 255.8 kB / 420.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.094e-05/0.2284, allocations: 95.61 kB / 420.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.2286, allocations: 242.8 kB / 420.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.2291, allocations: 492.9 kB / 421 MB, free: 18.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2291, allocations: 3.938 kB / 421 MB, free: 18.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2291, allocations: 0 / 421 MB, free: 18.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.2291, allocations: 0 / 421 MB, free: 18.1 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.003291/0.2324, allocations: 1.183 MB / 422.2 MB, free: 16.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.2325, allocations: 11.89 kB / 422.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.2327, allocations: 64.36 kB / 422.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2331, allocations: 355.5 kB / 422.6 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.2332, allocations: 29.03 kB / 422.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.2332, allocations: 32.38 kB / 422.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005944/0.2338, allocations: 458.5 kB / 423.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.2338, allocations: 192 / 423.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.131e-05/0.2339, allocations: 19.94 kB / 423.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.2339, allocations: 4 kB / 423.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.2344, allocations: 454.5 kB / 423.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2363, allocations: 1.987 MB / 425.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.2373, allocations: 0.6884 MB / 426.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/0.2376, allocations: 305.2 kB / 426.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.64e-05/0.2377, allocations: 4 kB / 426.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005547/0.2382, allocations: 480.5 kB / 427 MB, free: 11.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.073e-06/0.2382, allocations: 0 / 427 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.005372/0.2436, allocations: 1.802 MB / 428.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.2437, allocations: 196.3 kB / 429 MB, free: 9.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.244, allocations: 303 kB / 429.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/0.2441, allocations: 37.7 kB / 429.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.262e-05/0.2442, allocations: 172.8 kB / 429.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2443, allocations: 161.6 kB / 429.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.2445, allocations: 102.2 kB / 429.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.23e-05/0.2446, allocations: 350.8 kB / 430.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.2449, allocations: 277.1 kB / 430.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.2453, allocations: 347.7 kB / 430.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00677/0.2521, allocations: 2.082 MB / 432.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.361e-06/0.2521, allocations: 0 / 432.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002487/0.2546, allocations: 1.188 MB / 434 MB, free: 4.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.2547, allocations: 43.97 kB / 434.1 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.2547, allocations: 3.938 kB / 434.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/0.2569, allocations: 0.5198 MB / 434.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.2572, allocations: 87.88 kB / 434.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.2622, allocations: 3.956 MB / 438.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.2626, allocations: 55.38 kB / 438.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.2627, allocations: 19.98 kB / 438.7 MB, free: 15.7 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.0003156/0.263, allocations: 217.2 kB / 438.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-05/0.2631, allocations: 39.56 kB / 439 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.2658, allocations: 1.137 MB / 440.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.2658, allocations: 4 kB / 440.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2658, allocations: 3.938 kB / 440.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2658, allocations: 7.984 kB / 440.1 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003309/0.2692, allocations: 1.826 MB / 441.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2692, allocations: 0 / 441.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.2694, allocations: 51.92 kB / 442 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/0.2716, allocations: 0.5101 MB / 442.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.2717, allocations: 12 kB / 442.5 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005663/0.2774, allocations: 3.923 MB / 446.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2774, allocations: 0 / 446.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.28, allocations: 1.183 MB / 447.6 MB, free: 6.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.2802, allocations: 116.5 kB / 447.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.614e-05/0.2803, allocations: 12 kB / 447.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.2807, allocations: 27.92 kB / 447.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.2808, allocations: 48.31 kB / 447.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.2809, allocations: 24 kB / 447.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.2811, allocations: 217.9 kB / 448.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2811, allocations: 3.938 kB / 448.1 MB, free: 6.062 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006707/0.2818, allocations: 183.8 kB / 448.2 MB, free: 5.883 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.000254/0.2821, allocations: 135.2 kB / 448.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.2841, allocations: 1.008 MB / 449.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2841, allocations: 0 / 449.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.2854, allocations: 0.6803 MB / 450.1 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.2859, allocations: 32.89 kB / 450.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.2873, allocations: 0.9814 MB / 451.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.2877, allocations: 0.8016 MB / 451.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.2878, allocations: 39.42 kB / 451.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2878, allocations: 0 / 451.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of Templates: time 0.01009/0.2979, allocations: 7.71 MB / 459.6 MB, free: 10.38 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)