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.001009/0.001009, allocations: 104.2 kB / 16.02 MB, free: 6.289 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.001141/0.001141, allocations: 198.2 kB / 16.95 MB, free: 6.125 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.292/1.292, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04547/0.04547, allocations: 8.095 MB / 298.9 MB, free: 6.848 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0011/0.001101, allocations: 63.89 kB / 361.3 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.2038, allocations: 51.51 MB / 412.8 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.0044/0.2083, allocations: 4.604 MB / 417.4 MB, free: 21.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.2105, allocations: 1.736 MB / 419.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.2108, allocations: 12 kB / 419.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000717/0.2115, allocations: 456.9 kB / 419.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.2121, allocations: 370.4 kB / 420 MB, free: 18.59 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.001429/0.2135, allocations: 0.9966 MB / 421 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000632/0.2141, allocations: 0.8217 MB / 421.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.2145, allocations: 333.5 kB / 422.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/0.2148, allocations: 378.7 kB / 422.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.2152, allocations: 0.5919 MB / 423.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.066e-05/0.2153, allocations: 80 kB / 423.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004237/0.2158, allocations: 311.8 kB / 423.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002175/0.216, allocations: 430.7 kB / 423.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003311/0.2163, allocations: 0.5982 MB / 424.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.2174, allocations: 1.64 MB / 426.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2174, allocations: 0 / 426.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2174, allocations: 0 / 426.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.2174, allocations: 0 / 426.1 MB, free: 12.41 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.00358/0.221, allocations: 1.904 MB / 428.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2211, allocations: 11.89 kB / 428.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.2212, allocations: 110.7 kB / 428.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.2214, allocations: 147.2 kB / 428.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009878/0.2224, allocations: 0.966 MB / 429.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.2225, allocations: 220.1 kB / 429.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.073e-05/0.2226, allocations: 64.36 kB / 429.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.2237, allocations: 0.8391 MB / 430.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.2238, allocations: 3.938 kB / 430.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.2238, allocations: 28 kB / 430.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2239, allocations: 16 kB / 430.4 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009622/0.2248, allocations: 0.6806 MB / 431.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003865/0.2287, allocations: 3.573 MB / 434.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.2305, allocations: 1.417 MB / 436.1 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006932/0.2312, allocations: 0.5041 MB / 436.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.2313, allocations: 102.1 kB / 436.7 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008434/0.2322, allocations: 0.5553 MB / 437.3 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.695e-06/0.2322, allocations: 0 / 437.3 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007697/0.2399, allocations: 2.527 MB / 439.8 MB, free: 14.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.2401, allocations: 274 kB / 440.1 MB, free: 13.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.2424, allocations: 1.775 MB / 441.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.2425, allocations: 41.7 kB / 441.9 MB, free: 12.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.2429, allocations: 497.6 kB / 442.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.2431, allocations: 291.7 kB / 442.7 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.2434, allocations: 142.7 kB / 442.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2435, allocations: 349.9 kB / 443.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006334/0.2441, allocations: 353.8 kB / 443.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007152/0.2449, allocations: 0.4911 MB / 444 MB, free: 9.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005852/0.2507, allocations: 1.959 MB / 445.9 MB, free: 7.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2508, allocations: 4 kB / 445.9 MB, free: 7.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.00315/0.2539, allocations: 1.411 MB / 447.3 MB, free: 6.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.254, allocations: 4 kB / 447.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.254, allocations: 3.984 kB / 447.4 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/0.2556, allocations: 0.545 MB / 447.9 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.256, allocations: 115.8 kB / 448 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.2575, allocations: 1.185 MB / 449.2 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005898/0.2581, allocations: 83.25 kB / 449.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.2582, allocations: 31.98 kB / 449.3 MB, free: 4.504 MB / 318.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.000603/0.2588, allocations: 449.6 kB / 449.8 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.259, allocations: 126.5 kB / 449.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.262, allocations: 1.487 MB / 451.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.262, allocations: 8 kB / 451.4 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2621, allocations: 0 / 451.4 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.2621, allocations: 7.984 kB / 451.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00481/0.2669, allocations: 3.149 MB / 454.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2669, allocations: 0 / 454.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/0.2673, allocations: 99.83 kB / 454.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/0.2689, allocations: 0.5316 MB / 455.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.279e-05/0.269, allocations: 23.98 kB / 455.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/0.2704, allocations: 1.158 MB / 456.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2704, allocations: 0 / 456.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/0.2741, allocations: 2.003 MB / 458.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.2745, allocations: 271.3 kB / 458.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.2746, allocations: 16 kB / 458.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.2752, allocations: 55.95 kB / 458.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.2753, allocations: 68.91 kB / 458.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.2754, allocations: 31.98 kB / 458.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001487/0.2769, allocations: 1.289 MB / 460.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2769, allocations: 0 / 460.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006645/0.2776, allocations: 243.6 kB / 460.3 MB, free: 9.344 MB / 334.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.004494/0.2821, allocations: 2.721 MB / 463 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.2849, allocations: 1.128 MB / 464.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.285, allocations: 0 / 464.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.2867, allocations: 0.6881 MB / 464.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.2875, allocations: 120.4 kB / 465 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/0.3103, allocations: 14.2 MB / 479.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007349/0.3111, allocations: 1.169 MB / 480.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004306/0.3115, allocations: 167.2 kB / 480.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.312, allocations: 431.3 kB / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.312, allocations: 0 / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.224/0.5361, allocations: 26.27 MB / 0.4953 GB, free: 10.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003682/0.5365, allocations: 290.3 kB / 0.4956 GB, free: 9.906 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.158, allocations: 3.938 kB / 0.4956 GB, free: 9.902 MB / 382.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)