Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",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.0007205/0.0007204, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007553/0.0007553, allocations: 176 kB / 16.63 MB, free: 6.887 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.254/1.254, allocations: 223.2 MB / 240.6 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1448/0.1448, allocations: 8.082 MB / 299.8 MB, free: 2.945 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002738, allocations: 8 kB / 363 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08657, allocations: 52.51 MB / 415.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004119/0.09073, allocations: 3.981 MB / 419.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.09291, allocations: 1.605 MB / 421.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.09311, allocations: 16 kB / 421.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006615/0.09377, allocations: 430.6 kB / 421.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005346/0.09432, allocations: 358.4 kB / 421.8 MB, free: 2.184 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001414/0.09575, allocations: 0.8412 MB / 422.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007247/0.09648, allocations: 0.728 MB / 423.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.09683, allocations: 245.7 kB / 423.7 MB, free: 376 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.09709, allocations: 314.8 kB / 424 MB, free: 60 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1653/0.2624, allocations: 497.2 kB / 424.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.2625, allocations: 36.16 kB / 424.5 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005724/0.2631, allocations: 246.9 kB / 424.7 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.2634, allocations: 386.5 kB / 425.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.2636, allocations: 228.3 kB / 425.3 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009219/0.2645, allocations: 1.273 MB / 426.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2645, allocations: 1.938 kB / 426.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2645, allocations: 0 / 426.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2646, allocations: 0.5469 kB / 426.6 MB, free: 35.57 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002991/0.2676, allocations: 1.696 MB / 428.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.2676, allocations: 9.875 kB / 428.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.2677, allocations: 117.5 kB / 428.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.2679, allocations: 147.5 kB / 428.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009071/0.2688, allocations: 0.9156 MB / 429.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.2689, allocations: 227.4 kB / 429.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.116e-05/0.269, allocations: 56.44 kB / 429.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.2701, allocations: 0.8434 MB / 430.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2701, allocations: 4 kB / 430.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.603e-05/0.2702, allocations: 27.67 kB / 430.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2702, allocations: 20.39 kB / 430.7 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009069/0.2711, allocations: 0.6783 MB / 431.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.2749, allocations: 3.585 MB / 434.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.2766, allocations: 1.443 MB / 436.4 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006796/0.2773, allocations: 0.5051 MB / 436.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.2774, allocations: 107.2 kB / 437 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007684/0.2782, allocations: 0.5573 MB / 437.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.595e-06/0.2782, allocations: 0 / 437.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.006357/0.2846, allocations: 2.61 MB / 440.1 MB, free: 31.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.2846, allocations: 275 kB / 440.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.2863, allocations: 1.786 MB / 442.2 MB, free: 31.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/0.2864, allocations: 44.17 kB / 442.2 MB, free: 31.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.2867, allocations: 489.6 kB / 442.7 MB, free: 31.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.2868, allocations: 291 kB / 443 MB, free: 30.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.819e-05/0.2869, allocations: 15 kB / 443 MB, free: 30.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/0.2869, allocations: 339.2 kB / 443.3 MB, free: 30.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/0.2875, allocations: 366.4 kB / 443.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005908/0.2881, allocations: 0.5029 MB / 444.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.2886, allocations: 394.2 kB / 444.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2887, allocations: 0 / 444.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002574/0.2912, allocations: 1.445 MB / 446 MB, free: 29.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2913, allocations: 12.41 kB / 446 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2913, allocations: 0 / 446 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/0.2928, allocations: 0.5559 MB / 446.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.2932, allocations: 113.7 kB / 446.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.2945, allocations: 1.199 MB / 447.9 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.295, allocations: 85.97 kB / 448 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-05/0.295, allocations: 30.78 kB / 448 MB, free: 28.27 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.delay.firstTrigger,delay.firstTrigger,$whenCondition2,$whenCondition1,delay.sampleTrigger,n2.y,n1.y,o.y,$PRE.delay.y,delay.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {12 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005129/0.2955, allocations: 451.7 kB / 448.5 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2957, allocations: 127 kB / 448.6 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/0.2984, allocations: 1.516 MB / 450.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.2984, allocations: 9.812 kB / 450.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2984, allocations: 3.953 kB / 450.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.2984, allocations: 3.422 kB / 450.1 MB, free: 27.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004464/0.3029, allocations: 3.174 MB / 453.3 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.3029, allocations: 3.953 kB / 453.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.3033, allocations: 103.9 kB / 453.4 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.3047, allocations: 0.5441 MB / 453.9 MB, free: 25.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.3047, allocations: 18.34 kB / 454 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.3061, allocations: 1.174 MB / 455.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3061, allocations: 0 / 455.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003256/0.3094, allocations: 2.027 MB / 457.2 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3097, allocations: 278.1 kB / 457.4 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.3098, allocations: 17.56 kB / 457.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004863/0.3103, allocations: 70.02 kB / 457.5 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3104, allocations: 76.72 kB / 457.6 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.032e-05/0.3105, allocations: 27.41 kB / 457.6 MB, free: 23.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001351/0.3118, allocations: 1.285 MB / 458.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.42e-07/0.3119, allocations: 0 / 458.9 MB, free: 23.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006894/0.3126, allocations: 246.9 kB / 459.1 MB, free: 23.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {12 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.004283/0.3168, allocations: 2.774 MB / 461.9 MB, free: 21.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.3193, allocations: 1.117 MB / 463 MB, free: 21.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3193, allocations: 1.188 kB / 463 MB, free: 21.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001614/0.3209, allocations: 0.6961 MB / 463.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006639/0.3216, allocations: 103.8 kB / 463.8 MB, free: 21.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.3371, allocations: 9.561 MB / 473.4 MB, free: 16.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.3378, allocations: 1.177 MB / 474.6 MB, free: 16.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004224/0.3382, allocations: 165.8 kB / 474.7 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004953/0.3387, allocations: 444.2 kB / 475.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3387, allocations: 0 / 475.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.3752, allocations: 24.89 MB / 0.4883 GB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.3755, allocations: 261.6 kB / 0.4886 GB, free: 13.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.469, allocations: 64 / 0.4886 GB, free: 13.26 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1) Environment - environmentSimulation: