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: "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 101.1 kB / 16.45 MB, free: 6.453 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.001843/0.001843, allocations: 188.9 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.267/1.267, 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-master/package.mo): time 0.0456/0.0456, allocations: 8.1 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09629, allocations: 51.52 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003533/0.09985, allocations: 2.816 MB / 468.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1012, allocations: 0.8365 MB / 469.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.633e-05/0.1013, allocations: 4 kB / 469.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.1016, allocations: 139.2 kB / 469.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.1019, allocations: 143.1 kB / 469.4 MB, free: 14.71 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.001518/0.1034, allocations: 0.9373 MB / 470.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.1038, allocations: 306.5 kB / 470.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.104, allocations: 118.9 kB / 470.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.1041, allocations: 127.5 kB / 470.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.1044, allocations: 199.2 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.959e-05/0.1044, allocations: 28 kB / 471.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.1047, allocations: 211.8 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.91e-05/0.1048, allocations: 67.69 kB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.1049, allocations: 147.3 kB / 471.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005058/0.1055, allocations: 462.3 kB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1055, allocations: 0 / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1055, allocations: 3.938 kB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1055, allocations: 0 / 472 MB, free: 12.14 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.001902/0.1074, allocations: 0.7878 MB / 472.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.1075, allocations: 15.83 kB / 472.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.081e-05/0.1075, allocations: 70.72 kB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.248e-05/0.1076, allocations: 28.66 kB / 472.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.1079, allocations: 264.6 kB / 473.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.294e-05/0.108, allocations: 80.53 kB / 473.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.1081, allocations: 28.38 kB / 473.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005056/0.1086, allocations: 357 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1086, allocations: 4 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.1086, allocations: 15.94 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1087, allocations: 4 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005006/0.1092, allocations: 334.1 kB / 474 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.1107, allocations: 1.307 MB / 475.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009462/0.1116, allocations: 0.5591 MB / 475.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.1119, allocations: 216.6 kB / 476 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.286e-05/0.112, allocations: 7.984 kB / 476.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004495/0.1124, allocations: 263.2 kB / 476.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.1125, allocations: 4 kB / 476.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002756/0.1152, allocations: 1.066 MB / 477.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1153, allocations: 55.41 kB / 477.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.1154, allocations: 186.7 kB / 477.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.1155, allocations: 37.7 kB / 477.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.1156, allocations: 144.6 kB / 477.8 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/0.1157, allocations: 145.8 kB / 477.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.1158, allocations: 82.11 kB / 478 MB, free: 5.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1159, allocations: 330.8 kB / 478.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.1162, allocations: 180.8 kB / 478.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.1165, allocations: 219.3 kB / 478.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000564/0.1171, allocations: 407 kB / 479.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1171, allocations: 0 / 479.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001468/0.1186, allocations: 0.711 MB / 479.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1186, allocations: 4 kB / 479.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1186, allocations: 4 kB / 479.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.1198, allocations: 304.5 kB / 480.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.12, allocations: 59.91 kB / 480.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/0.1239, allocations: 2.964 MB / 483.2 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.1241, allocations: 31.75 kB / 483.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.1241, allocations: 16 kB / 483.2 MB, free: 412 kB / 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: 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.0001512/0.1243, allocations: 149.8 kB / 483.4 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.1244, allocations: 31.64 kB / 483.4 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.1259, allocations: 0.7303 MB / 484.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.126, allocations: 4 kB / 484.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.126, allocations: 0 / 484.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.126, allocations: 3.938 kB / 484.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.1279, allocations: 1.264 MB / 485.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1279, allocations: 3.938 kB / 485.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.1281, allocations: 39.98 kB / 485.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.1292, allocations: 307.6 kB / 485.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.1292, allocations: 16 kB / 485.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003581/0.1328, allocations: 2.925 MB / 488.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1328, allocations: 0 / 488.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.1343, allocations: 0.7747 MB / 489.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.1344, allocations: 112.6 kB / 489.6 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.1344, allocations: 8 kB / 489.6 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.1346, allocations: 19.98 kB / 489.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.1347, allocations: 40.38 kB / 489.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.1348, allocations: 20.12 kB / 489.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001267/0.1349, allocations: 144 kB / 489.8 MB, free: 9.566 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1349, allocations: 0 / 489.8 MB, free: 9.566 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004655/0.1354, allocations: 127.9 kB / 489.9 MB, free: 9.441 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.001882/0.1373, allocations: 1.334 MB / 491.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.1387, allocations: 0.7027 MB / 492 MB, free: 7.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1387, allocations: 3.938 kB / 492 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008258/0.1395, allocations: 0.4932 MB / 492.5 MB, free: 6.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.1398, allocations: 30.33 kB / 492.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/0.1454, allocations: 3.562 MB / 496 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.1457, allocations: 0.7735 MB / 496.8 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.1459, allocations: 42.95 kB / 496.9 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.146, allocations: 91.39 kB / 496.9 MB, free: 2.227 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.146, allocations: 3.938 kB / 497 MB, free: 2.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.1757, allocations: 9.968 MB / 0.495 GB, free: 8.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.64, allocations: 18.8 kB / 0.4951 GB, free: 8.375 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)