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.0009603/0.0009604, allocations: 103.7 kB / 16.31 MB, free: 6.359 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.001442/0.001442, allocations: 189.8 kB / 17.24 MB, free: 5.875 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.307/1.307, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04731/0.04731, allocations: 8.096 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002389, allocations: 63.91 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2406, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003166/0.2438, allocations: 2.813 MB / 416.2 MB, free: 22.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2449, allocations: 0.8289 MB / 417 MB, free: 21.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.245, allocations: 8 kB / 417 MB, free: 21.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.2454, allocations: 135.2 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.2456, allocations: 143.1 kB / 417.3 MB, free: 21.63 MB / 302.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.001264/0.2469, allocations: 0.9296 MB / 418.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.2472, allocations: 298.7 kB / 418.5 MB, free: 20.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.2473, allocations: 118.9 kB / 418.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.405e-05/0.2474, allocations: 131.5 kB / 418.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.2477, allocations: 195.3 kB / 418.9 MB, free: 19.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.2477, allocations: 28 kB / 419 MB, free: 19.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002744/0.248, allocations: 211.8 kB / 419.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.463e-05/0.248, allocations: 67.69 kB / 419.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.561e-05/0.2481, allocations: 143.3 kB / 419.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.2485, allocations: 464.9 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2485, allocations: 0 / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2485, allocations: 0 / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.2486, allocations: 0 / 419.8 MB, free: 19.07 MB / 302.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.001893/0.2505, allocations: 0.7916 MB / 420.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.2505, allocations: 15.89 kB / 420.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.214e-05/0.2506, allocations: 66.72 kB / 420.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.2507, allocations: 40.55 kB / 420.7 MB, free: 18.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.2509, allocations: 266.2 kB / 421 MB, free: 17.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.251, allocations: 80.47 kB / 421.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.197e-05/0.2511, allocations: 28.38 kB / 421.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.2516, allocations: 349.1 kB / 421.4 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2516, allocations: 3.938 kB / 421.4 MB, free: 17.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.2516, allocations: 12 kB / 421.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.2516, allocations: 12 kB / 421.5 MB, free: 17.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.2521, allocations: 334.1 kB / 421.8 MB, free: 16.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.2533, allocations: 1.307 MB / 423.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008586/0.2542, allocations: 0.5552 MB / 423.7 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.2545, allocations: 220.6 kB / 423.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.942e-05/0.2545, allocations: 11.98 kB / 423.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003906/0.2549, allocations: 263.9 kB / 424.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/0.2549, allocations: 4 kB / 424.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002703/0.2576, allocations: 1.066 MB / 425.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.2577, allocations: 55.41 kB / 425.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.2578, allocations: 190.6 kB / 425.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2579, allocations: 33.7 kB / 425.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.628e-05/0.2579, allocations: 144.6 kB / 425.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.258, allocations: 137.9 kB / 425.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.2581, allocations: 82.11 kB / 425.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.2582, allocations: 334.8 kB / 426.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.2584, allocations: 180.8 kB / 426.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.2586, allocations: 219.2 kB / 426.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000484/0.2591, allocations: 411 kB / 427 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2592, allocations: 4 kB / 427 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001362/0.2605, allocations: 0.7148 MB / 427.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2605, allocations: 8.062 kB / 427.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.2606, allocations: 4 kB / 427.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.2617, allocations: 300.5 kB / 428 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.2619, allocations: 59.91 kB / 428 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003327/0.2653, allocations: 2.973 MB / 431 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.2655, allocations: 35.69 kB / 431 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.2656, allocations: 16 kB / 431.1 MB, free: 7.309 MB / 302.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.0001443/0.2657, allocations: 145.8 kB / 431.2 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.2658, allocations: 31.64 kB / 431.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.2672, allocations: 0.7264 MB / 432 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2673, allocations: 4 kB / 432 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.2673, allocations: 0 / 432 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2673, allocations: 7.938 kB / 432 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.269, allocations: 1.256 MB / 433.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.269, allocations: 0 / 433.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.2692, allocations: 51.92 kB / 433.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.2703, allocations: 312.5 kB / 433.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.2703, allocations: 8 kB / 433.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003097/0.2734, allocations: 2.938 MB / 436.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2734, allocations: 128 / 436.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.2748, allocations: 0.7696 MB / 437.3 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.562e-05/0.2748, allocations: 112.8 kB / 437.4 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.2749, allocations: 4 kB / 437.4 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.2751, allocations: 23.92 kB / 437.4 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.2752, allocations: 40.38 kB / 437.5 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.2753, allocations: 16 kB / 437.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.2754, allocations: 148 kB / 437.6 MB, free: 480 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2754, allocations: 0 / 437.6 MB, free: 480 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.000507/0.2759, allocations: 127.8 kB / 437.8 MB, free: 352 kB / 302.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.001917/0.2778, allocations: 1.334 MB / 439.1 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.2794, allocations: 0.726 MB / 439.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2794, allocations: 0 / 439.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009115/0.2803, allocations: 0.4893 MB / 440.3 MB, free: 13.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.2807, allocations: 34.73 kB / 440.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005759/0.2864, allocations: 3.547 MB / 443.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.2868, allocations: 0.7696 MB / 444.7 MB, free: 9.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.287, allocations: 42.94 kB / 444.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.2871, allocations: 95.34 kB / 444.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2871, allocations: 0 / 444.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.3275, allocations: 9.825 MB / 454.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.59, allocations: 11.97 kB / 454.6 MB, free: 15.41 MB / 334.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)