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.001357/0.001356, allocations: 115.7 kB / 17.09 MB, free: 6.055 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.001303/0.001303, allocations: 195 kB / 18.02 MB, free: 5.16 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.462/1.462, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04392/0.04392, allocations: 8.091 MB / 300 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.91 kB / 415.1 MB, free: 21.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0739/0.07509, allocations: 51.52 MB / 466.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002399/0.07752, allocations: 1.573 MB / 468.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.07928, allocations: 1.559 MB / 469.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.837e-05/0.07936, allocations: 4 kB / 469.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.07968, allocations: 123.3 kB / 469.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.07994, allocations: 111.2 kB / 470 MB, free: 14.81 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.001523/0.08147, allocations: 0.9216 MB / 470.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002868/0.08178, allocations: 250.8 kB / 471.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.08193, allocations: 76.34 kB / 471.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.219e-05/0.08203, allocations: 99.64 kB / 471.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.08222, allocations: 131.4 kB / 471.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.08226, allocations: 24 kB / 471.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003115/0.08257, allocations: 203.8 kB / 471.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.618e-05/0.08263, allocations: 51.77 kB / 471.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.08274, allocations: 115.4 kB / 471.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004267/0.08317, allocations: 398.9 kB / 472.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.08318, allocations: 0 / 472.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.08319, allocations: 0 / 472.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.0832, allocations: 4 kB / 472.2 MB, free: 12.56 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.002395/0.08561, allocations: 0.8184 MB / 473 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.08564, allocations: 11.89 kB / 473 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.071e-05/0.08572, allocations: 28.64 kB / 473.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.08599, allocations: 256.7 kB / 473.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.08602, allocations: 16.38 kB / 473.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.08606, allocations: 16.38 kB / 473.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/0.08648, allocations: 273.8 kB / 473.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.0865, allocations: 192 / 473.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.08653, allocations: 7.938 kB / 473.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.08654, allocations: 4 kB / 473.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.08691, allocations: 251.7 kB / 473.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.08825, allocations: 1.144 MB / 475 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.08868, allocations: 299.2 kB / 475.3 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.08891, allocations: 165.3 kB / 475.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.803e-05/0.08897, allocations: 8.219 kB / 475.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.08934, allocations: 231.5 kB / 475.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.392e-06/0.08935, allocations: 0 / 475.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002857/0.09221, allocations: 0.9217 MB / 476.6 MB, free: 7.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.09226, allocations: 55.41 kB / 476.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.09244, allocations: 187.1 kB / 476.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.09248, allocations: 37.7 kB / 476.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.992e-05/0.09256, allocations: 124.8 kB / 477 MB, free: 7.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.705e-05/0.09265, allocations: 98.58 kB / 477.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.09276, allocations: 65.44 kB / 477.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.09286, allocations: 326.8 kB / 477.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.09311, allocations: 155.9 kB / 477.7 MB, free: 6.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.09337, allocations: 182.9 kB / 477.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005306/0.09391, allocations: 366.3 kB / 478.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.09392, allocations: 0 / 478.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001635/0.09556, allocations: 0.6497 MB / 478.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.09559, allocations: 11.98 kB / 478.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.0956, allocations: 0 / 478.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.0972, allocations: 340.5 kB / 479.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.09745, allocations: 55.91 kB / 479.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.1013, allocations: 2.625 MB / 481.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002217/0.1016, allocations: 15.91 kB / 481.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.1016, allocations: 12 kB / 481.9 MB, free: 2.355 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.0001456/0.1017, allocations: 141.8 kB / 482 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.1018, allocations: 27.64 kB / 482.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.1035, allocations: 0.6526 MB / 482.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1035, allocations: 7.938 kB / 482.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.1036, allocations: 0 / 482.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1036, allocations: 4 kB / 482.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1039, allocations: 401.1 kB / 483.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1039, allocations: 0 / 483.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.1041, allocations: 47.91 kB / 483.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.1056, allocations: 332.5 kB / 483.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.1057, allocations: 11.98 kB / 483.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.1093, allocations: 2.609 MB / 486.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1093, allocations: 0 / 486.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.1109, allocations: 0.6383 MB / 486.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.111, allocations: 104.7 kB / 486.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.1111, allocations: 4.125 kB / 486.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.1113, allocations: 19.98 kB / 486.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.1113, allocations: 27.91 kB / 486.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.1114, allocations: 15.94 kB / 486.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001204/0.1115, allocations: 135.7 kB / 487 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1115, allocations: 0 / 487 MB, free: 12.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.1119, allocations: 99.94 kB / 487.1 MB, free: 12.86 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.0001784/0.1121, allocations: 123.3 kB / 487.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.1135, allocations: 0.6116 MB / 487.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1135, allocations: 0 / 487.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.1145, allocations: 434.5 kB / 488.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.1148, allocations: 39.86 kB / 488.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008299/0.1156, allocations: 0.5385 MB / 488.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1159, allocations: 0.7493 MB / 489.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.285e-05/0.116, allocations: 27.44 kB / 489.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.116, allocations: 0 / 489.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of Templates: time 0.006347/0.1223, allocations: 4.737 MB / 494.4 MB, free: 5.52 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)