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-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.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.001307/0.001307, allocations: 112.6 kB / 17.13 MB, free: 5.938 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.001268/0.001268, allocations: 199 kB / 18.06 MB, free: 5.023 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.326/1.326, 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.04527/0.04527, allocations: 8.102 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.081, allocations: 51.52 MB / 466.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003506/0.08453, allocations: 2.809 MB / 469.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.08591, allocations: 0.8404 MB / 470.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.939e-05/0.08601, allocations: 8 kB / 470.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003462/0.08637, allocations: 139.2 kB / 470.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.08669, allocations: 139.1 kB / 470.6 MB, free: 14.2 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 diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.08826, allocations: 0.9372 MB / 471.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000335/0.0886, allocations: 306.5 kB / 471.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.08881, allocations: 118.9 kB / 472 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.08893, allocations: 135.5 kB / 472.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.08919, allocations: 191.3 kB / 472.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.08923, allocations: 24 kB / 472.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003427/0.08958, allocations: 215.8 kB / 472.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.862e-05/0.08965, allocations: 67.75 kB / 472.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.08979, allocations: 147.2 kB / 472.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004932/0.09029, allocations: 466.5 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.0903, allocations: 0 / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09031, allocations: 0 / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.09032, allocations: 0 / 473.2 MB, free: 11.61 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.001933/0.09226, allocations: 0.7839 MB / 474 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.0923, allocations: 15.89 kB / 474 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.934e-05/0.09239, allocations: 28.66 kB / 474 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.09268, allocations: 276.5 kB / 474.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/0.09276, allocations: 76.53 kB / 474.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.09281, allocations: 28.38 kB / 474.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.09335, allocations: 345.4 kB / 474.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.09337, allocations: 3.938 kB / 474.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.09341, allocations: 12 kB / 474.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.09342, allocations: 8 kB / 474.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.09391, allocations: 338 kB / 475.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.09539, allocations: 1.307 MB / 476.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009819/0.09638, allocations: 0.5591 MB / 476.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.0967, allocations: 220.5 kB / 477.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-05/0.09676, allocations: 15.98 kB / 477.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/0.0972, allocations: 263 kB / 477.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.603e-06/0.09721, allocations: 0 / 477.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002907/0.1001, allocations: 1.074 MB / 478.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.1002, allocations: 55.41 kB / 478.5 MB, free: 5.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.1004, allocations: 186.7 kB / 478.7 MB, free: 5.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.1004, allocations: 37.7 kB / 478.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.1005, allocations: 140.6 kB / 478.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.681e-05/0.1006, allocations: 145.8 kB / 479 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.1007, allocations: 78.12 kB / 479.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.1008, allocations: 330.8 kB / 479.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.1011, allocations: 180.8 kB / 479.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.1014, allocations: 219.3 kB / 479.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005897/0.102, allocations: 415 kB / 480.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.102, allocations: 0 / 480.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001517/0.1035, allocations: 0.7071 MB / 480.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1035, allocations: 8 kB / 481 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1036, allocations: 0 / 481 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.1048, allocations: 308.2 kB / 481.3 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.105, allocations: 55.91 kB / 481.3 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003902/0.1089, allocations: 2.96 MB / 484.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1092, allocations: 35.84 kB / 484.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.1092, allocations: 16 kB / 484.3 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.0001501/0.1094, allocations: 145.8 kB / 484.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.1094, allocations: 27.66 kB / 484.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.1111, allocations: 0.7342 MB / 485.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1111, allocations: 4 kB / 485.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.1111, allocations: 3.938 kB / 485.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1111, allocations: 4 kB / 485.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.1132, allocations: 1.264 MB / 486.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1132, allocations: 0 / 486.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.1134, allocations: 51.92 kB / 486.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.1145, allocations: 300.5 kB / 486.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.1146, allocations: 12 kB / 486.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.1183, allocations: 2.925 MB / 489.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1183, allocations: 4 kB / 489.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.1198, allocations: 0.7669 MB / 490.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.919e-05/0.1199, allocations: 112.7 kB / 490.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.12, allocations: 20 kB / 490.7 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.1202, allocations: 15.98 kB / 490.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.1203, allocations: 40.39 kB / 490.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.1203, allocations: 15.98 kB / 490.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.1205, allocations: 136 kB / 490.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1205, allocations: 0 / 490.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.121, allocations: 135.9 kB / 491 MB, free: 8.992 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.0002102/0.1212, allocations: 123.2 kB / 491.1 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.1225, allocations: 0.7103 MB / 491.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1225, allocations: 0 / 491.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.1234, allocations: 0.4932 MB / 492.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.1237, allocations: 43.72 kB / 492.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1248, allocations: 0.6252 MB / 493 MB, free: 6.938 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.1251, allocations: 0.7735 MB / 493.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.176e-05/0.1252, allocations: 39.42 kB / 493.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1252, allocations: 0 / 493.8 MB, free: 6.094 MB / 366.1 MB Notification: Performance of Templates: time 0.007357/0.1326, allocations: 5.654 MB / 499.5 MB, free: 448 kB / 366.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)