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.00383/0.00383, allocations: 89.03 kB / 15.91 MB, free: 6.305 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.0009828/0.0009828, allocations: 195.2 kB / 16.83 MB, free: 6.238 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.226/1.226, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1552/0.1552, allocations: 8.083 MB / 298.7 MB, free: 2.008 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 59.91 kB / 361.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09385, allocations: 51.51 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003598/0.09748, allocations: 2.852 MB / 415.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.09887, allocations: 0.8329 MB / 416.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.09901, allocations: 4 kB / 416.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003697/0.09938, allocations: 119.5 kB / 416.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.09975, allocations: 123.3 kB / 416.6 MB, free: 6.137 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.001473/0.1012, allocations: 0.9144 MB / 417.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002988/0.1015, allocations: 278.7 kB / 417.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.1017, allocations: 111.5 kB / 417.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1018, allocations: 127.5 kB / 418 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.1021, allocations: 183.3 kB / 418.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.1021, allocations: 16 kB / 418.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000335/0.1025, allocations: 207.8 kB / 418.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.405e-05/0.1025, allocations: 59.75 kB / 418.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1026, allocations: 143.2 kB / 418.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004538/0.1031, allocations: 462.8 kB / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1031, allocations: 0 / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1031, allocations: 0 / 419.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1031, allocations: 0 / 419.1 MB, free: 3.664 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.001874/0.105, allocations: 0.7839 MB / 419.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1051, allocations: 12.03 kB / 419.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.629e-05/0.1051, allocations: 66.72 kB / 419.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.394e-05/0.1052, allocations: 36.56 kB / 420 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1055, allocations: 268.5 kB / 420.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.595e-05/0.1056, allocations: 80.52 kB / 420.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.1056, allocations: 28.38 kB / 420.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.1062, allocations: 353.1 kB / 420.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1062, allocations: 0 / 420.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.1062, allocations: 12 kB / 420.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1062, allocations: 11.94 kB / 420.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.1067, allocations: 330.1 kB / 421 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.1082, allocations: 1.319 MB / 422.3 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009681/0.1092, allocations: 0.5552 MB / 422.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.1095, allocations: 212.8 kB / 423.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.101e-05/0.1096, allocations: 15.97 kB / 423.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/0.11, allocations: 259.2 kB / 423.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.11, allocations: 4 kB / 423.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.002849/0.1129, allocations: 1.062 MB / 424.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.1129, allocations: 55.41 kB / 424.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.1131, allocations: 191.2 kB / 424.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.1132, allocations: 37.7 kB / 424.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.016e-05/0.1133, allocations: 140.5 kB / 424.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1134, allocations: 141.9 kB / 425 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.1135, allocations: 82.11 kB / 425.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1137, allocations: 330.8 kB / 425.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.114, allocations: 176.8 kB / 425.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.1143, allocations: 223.3 kB / 425.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006019/0.1149, allocations: 411 kB / 426.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1149, allocations: 0 / 426.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001493/0.1164, allocations: 0.7032 MB / 426.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1164, allocations: 9.406 kB / 426.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1164, allocations: 0 / 426.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.1176, allocations: 304.5 kB / 427.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.1179, allocations: 55.91 kB / 427.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003708/0.1216, allocations: 2.748 MB / 430 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.1218, allocations: 27.75 kB / 430 MB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.1219, allocations: 16 kB / 430 MB, free: 8.176 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.0001802/0.1221, allocations: 149.7 kB / 430.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.223e-05/0.1221, allocations: 23.72 kB / 430.2 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.1237, allocations: 0.7379 MB / 430.9 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1238, allocations: 4 kB / 430.9 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.1238, allocations: 0 / 430.9 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1238, allocations: 7.938 kB / 431 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.1258, allocations: 1.256 MB / 432.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1258, allocations: 4 kB / 432.2 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.126, allocations: 51.92 kB / 432.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.1272, allocations: 308.5 kB / 432.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.1272, allocations: 4 kB / 432.6 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003505/0.1307, allocations: 2.69 MB / 435.3 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1307, allocations: 4 kB / 435.3 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.1323, allocations: 0.7657 MB / 436 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.1323, allocations: 112.7 kB / 436.1 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.1324, allocations: 11.94 kB / 436.1 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.1326, allocations: 23.98 kB / 436.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1327, allocations: 36.39 kB / 436.2 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.1328, allocations: 15.98 kB / 436.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001369/0.1329, allocations: 136.1 kB / 436.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1329, allocations: 0 / 436.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004793/0.1334, allocations: 127.9 kB / 436.5 MB, free: 1.465 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.00192/0.1353, allocations: 1.33 MB / 437.8 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.1498/0.2851, allocations: 0.6989 MB / 438.5 MB, free: 56.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2851, allocations: 0 / 438.5 MB, free: 56.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007688/0.2859, allocations: 0.4907 MB / 439 MB, free: 56.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.2863, allocations: 32.38 kB / 439 MB, free: 56.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004834/0.2911, allocations: 3.653 MB / 442.7 MB, free: 55.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.2913, allocations: 0.7703 MB / 443.5 MB, free: 54.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.2915, allocations: 44.14 kB / 443.5 MB, free: 54.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2916, allocations: 88.38 kB / 443.6 MB, free: 54.68 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2916, allocations: 0 / 443.6 MB, free: 54.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2362/0.5279, allocations: 9.271 MB / 452.9 MB, free: 54.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.5281, allocations: 243.9 kB / 453.1 MB, free: 53.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.347, allocations: 0 / 453.1 MB, free: 53.79 MB / 366.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)