Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") translateModel(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 106 kB / 16.31 MB, free: 6.391 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.001102/0.001102, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.37/1.37, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05505/0.05505, allocations: 8.095 MB / 299.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.91 kB / 361.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2664, allocations: 51.51 MB / 413.2 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002412/0.2689, allocations: 1.574 MB / 414.8 MB, free: 24.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.2702, allocations: 1.555 MB / 416.4 MB, free: 22.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.243e-05/0.2703, allocations: 8 kB / 416.4 MB, free: 22.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002892/0.2706, allocations: 123.3 kB / 416.5 MB, free: 22.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.2709, allocations: 111.2 kB / 416.6 MB, free: 22.23 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.2721, allocations: 0.9133 MB / 417.5 MB, free: 21.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000224/0.2723, allocations: 246.8 kB / 417.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2725, allocations: 84.2 kB / 417.8 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.263e-05/0.2725, allocations: 95.64 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.2727, allocations: 131.4 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.2727, allocations: 20 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002658/0.273, allocations: 211.8 kB / 418.3 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.2731, allocations: 39.84 kB / 418.3 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.217e-05/0.2731, allocations: 119.4 kB / 418.4 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003366/0.2735, allocations: 404.8 kB / 418.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2735, allocations: 4 kB / 418.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.2735, allocations: 4 kB / 418.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.2735, allocations: 0 / 418.8 MB, free: 19.97 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002079/0.2756, allocations: 0.8069 MB / 419.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2756, allocations: 12.03 kB / 419.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.2757, allocations: 28.66 kB / 419.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.2759, allocations: 253.6 kB / 419.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.276, allocations: 16.38 kB / 420 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.276, allocations: 16.38 kB / 420 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.2763, allocations: 265.7 kB / 420.2 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2763, allocations: 192 / 420.2 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.2764, allocations: 11.94 kB / 420.2 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2764, allocations: 7.938 kB / 420.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.2767, allocations: 247.9 kB / 420.5 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.2777, allocations: 1.148 MB / 421.6 MB, free: 16.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.2781, allocations: 303.1 kB / 421.9 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.2782, allocations: 165.3 kB / 422.1 MB, free: 16.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.948e-05/0.2783, allocations: 4.234 kB / 422.1 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.2786, allocations: 223.5 kB / 422.3 MB, free: 16.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.402e-06/0.2786, allocations: 0 / 422.3 MB, free: 16.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002515/0.2811, allocations: 0.9217 MB / 423.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.2812, allocations: 59.34 kB / 423.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.2813, allocations: 191 kB / 423.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.2813, allocations: 29.7 kB / 423.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.2814, allocations: 124.9 kB / 423.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.047e-05/0.2814, allocations: 98.56 kB / 423.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.2815, allocations: 69.69 kB / 423.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.2816, allocations: 330.8 kB / 424.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.2818, allocations: 148 kB / 424.3 MB, free: 14.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.282, allocations: 183.1 kB / 424.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.2824, allocations: 370.3 kB / 424.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2824, allocations: 0 / 424.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001391/0.2838, allocations: 0.6498 MB / 425.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.2838, allocations: 4 kB / 425.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.2838, allocations: 0 / 425.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/0.2853, allocations: 348.5 kB / 425.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.2855, allocations: 51.91 kB / 425.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/0.2886, allocations: 2.637 MB / 428.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.2889, allocations: 31.75 kB / 428.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.2889, allocations: 8 kB / 428.5 MB, free: 9.781 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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 {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.289, allocations: 145.8 kB / 428.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.2891, allocations: 23.75 kB / 428.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.2905, allocations: 0.6564 MB / 429.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2906, allocations: 7.938 kB / 429.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2906, allocations: 0 / 429.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2906, allocations: 3.984 kB / 429.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.2908, allocations: 397.3 kB / 429.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2908, allocations: 0 / 429.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.291, allocations: 47.86 kB / 429.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.2924, allocations: 332.5 kB / 430.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.2924, allocations: 7.984 kB / 430.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002933/0.2953, allocations: 2.621 MB / 432.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2954, allocations: 4 kB / 432.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.2969, allocations: 0.6386 MB / 433.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.168e-05/0.297, allocations: 104.7 kB / 433.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.297, allocations: 8 kB / 433.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.2972, allocations: 11.98 kB / 433.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.2973, allocations: 23.97 kB / 433.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.2974, allocations: 12 kB / 433.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.2975, allocations: 131.2 kB / 433.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2975, allocations: 7.938 kB / 433.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004425/0.2979, allocations: 88 kB / 433.8 MB, free: 4.293 MB / 302.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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 {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002154/0.2982, allocations: 123.2 kB / 433.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.2995, allocations: 0.6401 MB / 434.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2995, allocations: 0 / 434.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008754/0.3004, allocations: 442.4 kB / 435 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.3007, allocations: 31.38 kB / 435 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008013/0.3015, allocations: 0.4986 MB / 435.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.3017, allocations: 0.7454 MB / 436.2 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.3018, allocations: 37.92 kB / 436.3 MB, free: 1.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.558e-05/0.3019, allocations: 31.42 kB / 436.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3019, allocations: 0 / 436.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of Templates: time 0.009338/0.3112, allocations: 5.893 MB / 442.2 MB, free: 11.8 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)