Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.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.UsingDiesel.OneDieselRescuingOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad") translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 108.3 kB / 16.45 MB, free: 6.434 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.00188/0.00188, allocations: 187 kB / 17.38 MB, free: 5.691 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.472/1.472, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05291/0.05291, allocations: 8.095 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.91 kB / 414.5 MB, free: 21.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09406/0.09546, allocations: 51.52 MB / 466 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003939/0.09943, allocations: 2.809 MB / 468.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.101, allocations: 0.8366 MB / 469.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.1012, allocations: 4 kB / 469.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.1016, allocations: 143.2 kB / 469.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004309/0.1021, allocations: 139.1 kB / 469.9 MB, free: 14.19 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.1038, allocations: 0.9411 MB / 470.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.1043, allocations: 306.5 kB / 471.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.1045, allocations: 118.9 kB / 471.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.1047, allocations: 131.5 kB / 471.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.105, allocations: 195.2 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.105, allocations: 28 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003941/0.1054, allocations: 215.8 kB / 471.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-05/0.1055, allocations: 59.77 kB / 471.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1057, allocations: 143.3 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006238/0.1063, allocations: 474.5 kB / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1063, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1063, allocations: 0 / 472.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1063, allocations: 0 / 472.5 MB, free: 11.6 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.002269/0.1086, allocations: 0.7878 MB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1087, allocations: 8.031 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.1088, allocations: 36.59 kB / 473.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.1091, allocations: 272.5 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.138e-05/0.1092, allocations: 80.52 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.855e-05/0.1093, allocations: 28.38 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/0.1099, allocations: 349.4 kB / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.1099, allocations: 3.938 kB / 474.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.11, allocations: 8 kB / 474.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.11, allocations: 8 kB / 474.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005268/0.1105, allocations: 334 kB / 474.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.1123, allocations: 1.315 MB / 475.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1135, allocations: 0.5513 MB / 476.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004125/0.1139, allocations: 216.6 kB / 476.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.203e-05/0.114, allocations: 11.98 kB / 476.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007068/0.1147, allocations: 271 kB / 476.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 3.577e-06/0.1147, allocations: 0 / 476.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003399/0.1181, allocations: 1.065 MB / 477.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1182, allocations: 59.41 kB / 477.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1185, allocations: 186.7 kB / 478.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.483e-05/0.1185, allocations: 33.7 kB / 478.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1186, allocations: 140.6 kB / 478.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.1188, allocations: 149.8 kB / 478.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.1189, allocations: 78.11 kB / 478.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.119, allocations: 334.8 kB / 478.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.1193, allocations: 176.8 kB / 478.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.1197, allocations: 227.3 kB / 479.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006246/0.1203, allocations: 407 kB / 479.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1203, allocations: 0 / 479.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001617/0.122, allocations: 0.7032 MB / 480.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.122, allocations: 4 kB / 480.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.122, allocations: 0 / 480.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.1233, allocations: 316.5 kB / 480.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.1236, allocations: 55.91 kB / 480.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004474/0.1281, allocations: 2.961 MB / 483.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.1283, allocations: 31.56 kB / 483.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.1283, allocations: 12 kB / 483.6 MB, free: 15.95 MB / 366.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: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.1285, allocations: 157.8 kB / 483.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.1286, allocations: 27.66 kB / 483.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.1303, allocations: 0.7224 MB / 484.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.1303, allocations: 4.125 kB / 484.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1303, allocations: 7.938 kB / 484.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1303, allocations: 3.984 kB / 484.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.1326, allocations: 1.261 MB / 485.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1327, allocations: 0 / 485.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001767/0.1328, allocations: 51.92 kB / 485.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.134, allocations: 304.5 kB / 486.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.1341, allocations: 12 kB / 486.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004371/0.1385, allocations: 2.925 MB / 489.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1385, allocations: 0 / 489.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.1402, allocations: 0.7786 MB / 489.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1403, allocations: 108.6 kB / 490 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.1403, allocations: 12 kB / 490 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.1406, allocations: 15.98 kB / 490 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.1407, allocations: 40.38 kB / 490.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.1408, allocations: 12 kB / 490.1 MB, free: 9.266 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001482/0.1409, allocations: 148.9 kB / 490.2 MB, free: 9.117 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1409, allocations: 4 kB / 490.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005325/0.1415, allocations: 127.9 kB / 490.3 MB, free: 8.988 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: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002267/0.1417, allocations: 111.2 kB / 490.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.1434, allocations: 0.7181 MB / 491.2 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1434, allocations: 0 / 491.2 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.1445, allocations: 0.4971 MB / 491.7 MB, free: 7.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.1449, allocations: 37.61 kB / 491.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.1462, allocations: 0.608 MB / 492.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1467, allocations: 0.7696 MB / 493.1 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.1468, allocations: 42.89 kB / 493.1 MB, free: 6.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.146e-05/0.1469, allocations: 31.42 kB / 493.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1469, allocations: 0 / 493.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of Templates: time 0.01204/0.159, allocations: 7.163 MB / 0.4886 GB, free: 14.95 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)