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-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.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.0007798/0.0007798, allocations: 103 kB / 16.07 MB, free: 32 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.001033/0.001033, allocations: 183.9 kB / 16.96 MB, free: 6.656 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.338/1.338, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1526/0.1526, allocations: 8.089 MB / 300.2 MB, free: 2.895 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.102, allocations: 52.52 MB / 416.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.006555/0.1086, allocations: 4.185 MB / 420.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003931/0.1126, allocations: 1.705 MB / 422 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005495/0.1132, allocations: 8 kB / 422 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.1143, allocations: 474.8 kB / 422.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009778/0.1153, allocations: 354.5 kB / 422.8 MB, free: 1.555 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.001996/0.1173, allocations: 1.012 MB / 423.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1625/0.2798, allocations: 0.7886 MB / 424.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004732/0.2803, allocations: 274 kB / 424.9 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000416/0.2807, allocations: 319.3 kB / 425.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006264/0.2814, allocations: 0.5283 MB / 425.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.677e-05/0.2815, allocations: 36.72 kB / 425.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006328/0.2821, allocations: 258.3 kB / 426 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.2824, allocations: 386.3 kB / 426.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.2828, allocations: 0.5556 MB / 426.9 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.2841, allocations: 1.558 MB / 428.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2841, allocations: 0 / 428.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2841, allocations: 0 / 428.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.2841, allocations: 0 / 428.5 MB, free: 34.8 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.003724/0.2879, allocations: 1.68 MB / 430.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.2879, allocations: 9.688 kB / 430.2 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.2881, allocations: 112 kB / 430.3 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.2882, allocations: 145.1 kB / 430.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.2893, allocations: 0.9696 MB / 431.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.2895, allocations: 223.8 kB / 431.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/0.2896, allocations: 59.94 kB / 431.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.2908, allocations: 0.8407 MB / 432.5 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2908, allocations: 3.375 kB / 432.5 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/0.2909, allocations: 30.5 kB / 432.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.2909, allocations: 16.09 kB / 432.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.292, allocations: 0.6903 MB / 433.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004359/0.2963, allocations: 3.597 MB / 436.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.2982, allocations: 1.441 MB / 438.3 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007722/0.299, allocations: 0.5137 MB / 438.8 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001399/0.2992, allocations: 99.45 kB / 438.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008378/0.3, allocations: 0.5588 MB / 439.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.555e-06/0.3001, allocations: 0 / 439.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.00765/0.3077, allocations: 2.654 MB / 442.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.3078, allocations: 278.9 kB / 442.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.3096, allocations: 1.774 MB / 444.2 MB, free: 29.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.022e-05/0.3097, allocations: 52 kB / 444.2 MB, free: 29.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.31, allocations: 489.1 kB / 444.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3102, allocations: 290.8 kB / 445 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.3103, allocations: 77.02 kB / 445.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.237e-05/0.3103, allocations: 339.3 kB / 445.4 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.3109, allocations: 365.9 kB / 445.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.3116, allocations: 0.5038 MB / 446.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005737/0.3173, allocations: 1.997 MB / 448.3 MB, free: 27.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3173, allocations: 0 / 448.3 MB, free: 27.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003154/0.3205, allocations: 1.461 MB / 449.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3205, allocations: 5.094 kB / 449.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3205, allocations: 3.312 kB / 449.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/0.3223, allocations: 0.5537 MB / 450.3 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.3227, allocations: 117.1 kB / 450.4 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.3241, allocations: 1.193 MB / 451.6 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006929/0.3248, allocations: 89.27 kB / 451.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.3248, allocations: 34.56 kB / 451.7 MB, free: 25.7 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 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.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 (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 {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000627/0.3255, allocations: 450.8 kB / 452.1 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.3257, allocations: 120.1 kB / 452.3 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00315/0.3288, allocations: 1.523 MB / 453.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3288, allocations: 8.875 kB / 453.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.3289, allocations: 0 / 453.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.3289, allocations: 3.422 kB / 453.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/0.3338, allocations: 3.196 MB / 457 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3338, allocations: 0 / 457 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.3342, allocations: 104 kB / 457.1 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.3358, allocations: 0.5451 MB / 457.6 MB, free: 23.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.3359, allocations: 19.23 kB / 457.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.3373, allocations: 1.176 MB / 458.8 MB, free: 22.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3373, allocations: 0 / 458.8 MB, free: 22.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004193/0.3415, allocations: 2.039 MB / 460.9 MB, free: 21.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005406/0.3421, allocations: 270.2 kB / 461.1 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/0.3422, allocations: 21.38 kB / 461.2 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005721/0.3428, allocations: 72.64 kB / 461.2 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.343, allocations: 74.75 kB / 461.3 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.386e-05/0.3431, allocations: 28.19 kB / 461.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001975/0.3451, allocations: 1.29 MB / 462.6 MB, free: 20.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3451, allocations: 0 / 462.6 MB, free: 20.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008549/0.3459, allocations: 237.9 kB / 462.9 MB, free: 20.65 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 (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 {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004886/0.3508, allocations: 2.773 MB / 465.6 MB, free: 19.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.3536, allocations: 1.12 MB / 466.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.3537, allocations: 1.375 kB / 466.8 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.3556, allocations: 0.7017 MB / 467.5 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.3566, allocations: 117.2 kB / 467.6 MB, free: 18.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/0.3803, allocations: 14.29 MB / 481.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008285/0.3812, allocations: 1.174 MB / 483 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00049/0.3817, allocations: 166.5 kB / 483.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.3822, allocations: 431.4 kB / 483.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3823, allocations: 1.375 kB / 483.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.4234, allocations: 24.97 MB / 0.4967 GB, free: 4.438 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.4237, allocations: 284.6 kB / 0.4969 GB, free: 4.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/2.609, allocations: 0 / 0.4969 GB, free: 4.059 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/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)