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-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.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.001341/0.001341, allocations: 117.3 kB / 17.13 MB, free: 5.961 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.001503/0.001504, allocations: 195 kB / 18.06 MB, free: 5.039 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04483/0.04483, allocations: 8.092 MB / 300 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 59.91 kB / 415.1 MB, free: 21.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.077/0.07821, allocations: 51.52 MB / 466.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002538/0.08079, allocations: 1.574 MB / 468.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.08286, allocations: 1.559 MB / 469.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.083, allocations: 7.938 kB / 469.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.08338, allocations: 119.4 kB / 469.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.08371, allocations: 115.2 kB / 470 MB, free: 14.79 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001657/0.08538, allocations: 0.9177 MB / 470.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.08574, allocations: 246.8 kB / 471.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.0859, allocations: 80.36 kB / 471.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.08604, allocations: 103.6 kB / 471.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.08623, allocations: 131.4 kB / 471.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.08628, allocations: 20 kB / 471.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003959/0.08668, allocations: 207.8 kB / 471.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.08674, allocations: 47.83 kB / 471.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.08686, allocations: 119.3 kB / 471.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004865/0.08735, allocations: 394.9 kB / 472.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.08737, allocations: 0 / 472.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.08738, allocations: 7.922 kB / 472.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.08739, allocations: 0 / 472.3 MB, free: 12.54 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002556/0.08995, allocations: 0.8185 MB / 473.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.08999, allocations: 15.89 kB / 473.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.09011, allocations: 24.66 kB / 473.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.09054, allocations: 252.7 kB / 473.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.09058, allocations: 16.38 kB / 473.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/0.09064, allocations: 20.38 kB / 473.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.09126, allocations: 265.8 kB / 473.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.09129, allocations: 192 / 473.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.09134, allocations: 15.94 kB / 473.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.09135, allocations: 4 kB / 473.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.09189, allocations: 247.7 kB / 473.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.09383, allocations: 1.148 MB / 475.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.09443, allocations: 295.2 kB / 475.4 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.09471, allocations: 169.3 kB / 475.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.989e-05/0.09478, allocations: 12.22 kB / 475.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003851/0.09517, allocations: 223.5 kB / 475.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.09519, allocations: 4 kB / 475.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003006/0.0982, allocations: 0.9217 MB / 476.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.09825, allocations: 55.34 kB / 476.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.09843, allocations: 187.1 kB / 476.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.09848, allocations: 33.69 kB / 477 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.09857, allocations: 124.8 kB / 477.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.518e-05/0.09865, allocations: 98.58 kB / 477.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.09877, allocations: 69.44 kB / 477.3 MB, free: 7.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.09889, allocations: 326.8 kB / 477.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002401/0.09913, allocations: 151.9 kB / 477.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.0994, allocations: 194.8 kB / 477.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.09991, allocations: 354.4 kB / 478.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.09992, allocations: 4 kB / 478.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001673/0.1016, allocations: 0.6497 MB / 478.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1016, allocations: 4 kB / 478.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1016, allocations: 0 / 478.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.1032, allocations: 340.5 kB / 479.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.1035, allocations: 51.92 kB / 479.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004019/0.1075, allocations: 2.64 MB / 481.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.1077, allocations: 15.91 kB / 482 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1078, allocations: 12 kB / 482 MB, free: 2.34 MB / 350.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.0001502/0.1079, allocations: 137.8 kB / 482.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.108, allocations: 31.66 kB / 482.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.1098, allocations: 0.6604 MB / 482.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1098, allocations: 7.938 kB / 482.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.1098, allocations: 0 / 482.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1098, allocations: 0 / 482.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003551/0.1102, allocations: 393.1 kB / 483.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1102, allocations: 3.938 kB / 483.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.1104, allocations: 47.98 kB / 483.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001533/0.1119, allocations: 332.5 kB / 483.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.1119, allocations: 4 kB / 483.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.1156, allocations: 2.609 MB / 486.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1156, allocations: 320 / 486.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1173, allocations: 0.6383 MB / 486.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.229e-05/0.1173, allocations: 108.7 kB / 486.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.1174, allocations: 4.125 kB / 486.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.1176, allocations: 19.98 kB / 486.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.1177, allocations: 27.91 kB / 487 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.1177, allocations: 12 kB / 487 MB, free: 13.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.1178, allocations: 135.7 kB / 487.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1179, allocations: 0 / 487.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003798/0.1182, allocations: 95.94 kB / 487.2 MB, free: 12.85 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: 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.0001731/0.1184, allocations: 123.2 kB / 487.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.1198, allocations: 0.6195 MB / 487.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1198, allocations: 0 / 487.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.1209, allocations: 442.4 kB / 488.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.1212, allocations: 27.92 kB / 488.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/0.122, allocations: 0.5384 MB / 488.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.1223, allocations: 0.7493 MB / 489.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.854e-05/0.1224, allocations: 27.44 kB / 489.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1224, allocations: 0 / 489.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Templates: time 0.006867/0.1293, allocations: 4.749 MB / 494.5 MB, free: 5.492 MB / 366.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)