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.0009062/0.0009062, allocations: 96.83 kB / 15.73 MB, free: 440 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.0009322/0.0009323, allocations: 179.4 kB / 16.61 MB, free: 6.426 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.238/1.238, allocations: 223.2 MB / 240.5 MB, free: 5.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1395/0.1395, allocations: 8.091 MB / 299.7 MB, free: 2.887 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002741, allocations: 12 kB / 362.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08472, allocations: 52.51 MB / 415.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.00406/0.08882, allocations: 3.796 MB / 419.2 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.09097, allocations: 1.605 MB / 420.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.09116, allocations: 16 kB / 420.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006512/0.09181, allocations: 438.5 kB / 421.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005164/0.09234, allocations: 371.1 kB / 421.6 MB, free: 2.43 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.001405/0.09376, allocations: 0.8565 MB / 422.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005748/0.09434, allocations: 0.5307 MB / 423 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003365/0.09469, allocations: 257.7 kB / 423.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.09495, allocations: 307 kB / 423.5 MB, free: 496 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005138/0.09547, allocations: 450.5 kB / 423.9 MB, free: 44 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.765e-05/0.09555, allocations: 36 kB / 424 MB, free: 8 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1454/0.241, allocations: 217.6 kB / 424.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.2413, allocations: 373.8 kB / 424.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001957/0.2415, allocations: 234.5 kB / 424.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009631/0.2425, allocations: 1.264 MB / 426.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.2425, allocations: 1.938 kB / 426.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2425, allocations: 0 / 426.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2425, allocations: 0 / 426.1 MB, free: 35.16 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.003336/0.2458, allocations: 1.697 MB / 427.8 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.2459, allocations: 9.719 kB / 427.8 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.246, allocations: 113.2 kB / 427.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.2462, allocations: 148.6 kB / 428 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.2473, allocations: 0.9216 MB / 428.9 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.2474, allocations: 220.8 kB / 429.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.33e-05/0.2475, allocations: 60.5 kB / 429.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.2486, allocations: 0.8285 MB / 430 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2487, allocations: 3 kB / 430 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.2487, allocations: 23.56 kB / 430.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2487, allocations: 20.36 kB / 430.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009581/0.2497, allocations: 0.683 MB / 430.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004028/0.2537, allocations: 3.6 MB / 434.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.2558, allocations: 1.438 MB / 435.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/0.2559, allocations: 103.3 kB / 435.9 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007189/0.2566, allocations: 0.5034 MB / 436.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.254e-06/0.2567, allocations: 0 / 436.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.006823/0.2635, allocations: 2.615 MB / 439 MB, free: 31.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.2636, allocations: 245 kB / 439.3 MB, free: 31.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.2652, allocations: 1.787 MB / 441.1 MB, free: 31.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.2653, allocations: 43.89 kB / 441.1 MB, free: 31.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.2656, allocations: 492.8 kB / 441.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.2657, allocations: 293.6 kB / 441.9 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.796e-05/0.2658, allocations: 16.31 kB / 441.9 MB, free: 30.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.2658, allocations: 339.4 kB / 442.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005637/0.2664, allocations: 366.8 kB / 442.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005857/0.267, allocations: 0.4929 MB / 443.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005695/0.2676, allocations: 387.6 kB / 443.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2676, allocations: 6.125 kB / 443.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002695/0.2703, allocations: 1.451 MB / 444.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2703, allocations: 5 kB / 444.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2703, allocations: 8.578 kB / 444.9 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.272, allocations: 0.5578 MB / 445.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.2724, allocations: 114.8 kB / 445.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.2737, allocations: 1.205 MB / 446.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005102/0.2742, allocations: 91.39 kB / 446.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.2743, allocations: 27.09 kB / 446.9 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: 6 * 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 (67): * Single equations (assignments): 66 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004817/0.2747, allocations: 449.1 kB / 447.3 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2749, allocations: 123.7 kB / 447.5 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002825/0.2777, allocations: 1.53 MB / 449 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.2777, allocations: 14.34 kB / 449 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2777, allocations: 0 / 449 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2778, allocations: 6.328 kB / 449 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/0.2821, allocations: 2.915 MB / 451.9 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2821, allocations: 4 kB / 451.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003532/0.2825, allocations: 102.7 kB / 452 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.2841, allocations: 0.5475 MB / 452.6 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-05/0.2841, allocations: 20.42 kB / 452.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.2854, allocations: 1.203 MB / 453.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2854, allocations: 4.734 kB / 453.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.2889, allocations: 2.039 MB / 455.8 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003911/0.2893, allocations: 278.8 kB / 456.1 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.2894, allocations: 15.03 kB / 456.1 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000519/0.2899, allocations: 71.02 kB / 456.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.2901, allocations: 73.7 kB / 456.3 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.861e-05/0.2901, allocations: 29.58 kB / 456.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001283/0.2914, allocations: 1.287 MB / 457.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2914, allocations: 0 / 457.6 MB, free: 23.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000611/0.292, allocations: 246.1 kB / 457.8 MB, free: 23.38 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (62): * Single equations (assignments): 59 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.004228/0.2963, allocations: 2.78 MB / 460.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.2988, allocations: 1.123 MB / 461.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2989, allocations: 1.219 kB / 461.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.3006, allocations: 0.7009 MB / 462.4 MB, free: 21.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005143/0.3012, allocations: 93.72 kB / 462.5 MB, free: 21.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.3061, allocations: 4.789 MB / 467.3 MB, free: 18.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.3067, allocations: 1.198 MB / 468.5 MB, free: 17.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003737/0.307, allocations: 163.3 kB / 468.7 MB, free: 17.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/0.3075, allocations: 443.3 kB / 469.1 MB, free: 16.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3075, allocations: 0 / 469.1 MB, free: 16.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03657/0.3441, allocations: 24.39 MB / 493.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.3443, allocations: 264.1 kB / 493.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.318, allocations: 0 / 493.8 MB, free: 4.008 MB / 350.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: