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.001436/0.001436, allocations: 102.9 kB / 16.45 MB, free: 6.438 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.001598/0.001598, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.261/1.261, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04662/0.04662, allocations: 8.103 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.89 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0907/0.09194, allocations: 51.51 MB / 465.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003813/0.09579, allocations: 2.816 MB / 468.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.09722, allocations: 0.8365 MB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.09741, allocations: 8 kB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.09784, allocations: 139.2 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003861/0.09824, allocations: 143.1 kB / 469.4 MB, free: 14.68 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.00161/0.09986, allocations: 0.9295 MB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004379/0.1003, allocations: 310.5 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.1005, allocations: 122.9 kB / 470.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.1007, allocations: 131.5 kB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.101, allocations: 195.2 kB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.816e-05/0.1011, allocations: 24 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.1015, allocations: 211.8 kB / 471.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.178e-05/0.1015, allocations: 63.7 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.1017, allocations: 147.3 kB / 471.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.1023, allocations: 470.3 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1023, allocations: 0 / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1023, allocations: 0 / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1023, allocations: 3.938 kB / 472 MB, free: 12.11 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.002237/0.1046, allocations: 0.7839 MB / 472.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.1046, allocations: 15.89 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.034e-05/0.1047, allocations: 66.72 kB / 472.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.1048, allocations: 32.66 kB / 472.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.1052, allocations: 268.5 kB / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-05/0.1053, allocations: 84.53 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.1053, allocations: 24.38 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005652/0.1059, allocations: 345.1 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1059, allocations: 3.938 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.106, allocations: 12 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.106, allocations: 8 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.1065, allocations: 338 kB / 474 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.1081, allocations: 1.307 MB / 475.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1091, allocations: 0.5591 MB / 475.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.1095, allocations: 220.5 kB / 476 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.662e-05/0.1095, allocations: 15.98 kB / 476.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.11, allocations: 263.2 kB / 476.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.813e-06/0.11, allocations: 0 / 476.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002897/0.1129, allocations: 1.066 MB / 477.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.113, allocations: 59.39 kB / 477.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.1132, allocations: 186.7 kB / 477.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.1132, allocations: 33.7 kB / 477.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.614e-05/0.1133, allocations: 136.6 kB / 477.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.1134, allocations: 145.8 kB / 477.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.1135, allocations: 78.12 kB / 478 MB, free: 5.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1137, allocations: 334.8 kB / 478.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.114, allocations: 180.8 kB / 478.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.1143, allocations: 219.3 kB / 478.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.1149, allocations: 411 kB / 479.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1149, allocations: 4 kB / 479.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001511/0.1164, allocations: 0.707 MB / 479.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.1164, allocations: 12.06 kB / 479.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1164, allocations: 0 / 479.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.1176, allocations: 308.5 kB / 480.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.1179, allocations: 59.91 kB / 480.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.1219, allocations: 2.957 MB / 483.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.1221, allocations: 31.75 kB / 483.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.1221, allocations: 15.98 kB / 483.2 MB, free: 384 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.0001537/0.1223, allocations: 145.8 kB / 483.4 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.1224, allocations: 35.59 kB / 483.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.124, allocations: 0.7265 MB / 484.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.124, allocations: 8 kB / 484.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.124, allocations: 0 / 484.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.124, allocations: 7.922 kB / 484.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.1261, allocations: 1.249 MB / 485.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1261, allocations: 4 kB / 485.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1263, allocations: 55.91 kB / 485.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.1274, allocations: 303 kB / 485.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.1275, allocations: 4 kB / 485.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003846/0.1313, allocations: 2.936 MB / 488.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1313, allocations: 0 / 488.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/0.1328, allocations: 0.7669 MB / 489.4 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.108e-05/0.1329, allocations: 116.6 kB / 489.6 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1329, allocations: 8 kB / 489.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1332, allocations: 19.98 kB / 489.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.1333, allocations: 40.33 kB / 489.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.1333, allocations: 12 kB / 489.6 MB, free: 9.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.1335, allocations: 152 kB / 489.8 MB, free: 9.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1335, allocations: 0 / 489.8 MB, free: 9.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004502/0.1339, allocations: 123.9 kB / 489.9 MB, free: 9.422 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.001838/0.1358, allocations: 1.338 MB / 491.2 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.1371, allocations: 0.7103 MB / 492 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1371, allocations: 0 / 492 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008621/0.138, allocations: 0.4932 MB / 492.4 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.1383, allocations: 34.33 kB / 492.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00538/0.1437, allocations: 3.551 MB / 496 MB, free: 3.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1441, allocations: 0.7696 MB / 496.8 MB, free: 2.336 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.1442, allocations: 42.94 kB / 496.8 MB, free: 2.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.1444, allocations: 83.41 kB / 496.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1444, allocations: 0 / 496.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0305/0.1749, allocations: 10.29 MB / 0.4953 GB, free: 8.062 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.63, allocations: 11.67 kB / 0.4953 GB, free: 8.055 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)