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.001484/0.001484, allocations: 106.2 kB / 16.31 MB, free: 6.391 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.001704/0.001704, allocations: 189.8 kB / 17.24 MB, free: 5.922 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.349/1.349, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05044/0.05044, allocations: 8.097 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.91 kB / 361.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1812, allocations: 51.51 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004294/0.1855, allocations: 4.597 MB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1875, allocations: 1.756 MB / 419.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.1877, allocations: 12 kB / 419.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006535/0.1884, allocations: 0.4924 MB / 420.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004921/0.1889, allocations: 390 kB / 420.6 MB, free: 18.31 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.001379/0.1903, allocations: 1.089 MB / 421.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005012/0.1908, allocations: 0.8139 MB / 422.5 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.1911, allocations: 337.5 kB / 422.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.1913, allocations: 374.7 kB / 423.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004491/0.1918, allocations: 0.5763 MB / 423.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.086e-05/0.1919, allocations: 80 kB / 423.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003742/0.1923, allocations: 299.8 kB / 424.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.1925, allocations: 426.8 kB / 424.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.1928, allocations: 0.6059 MB / 425.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009155/0.1937, allocations: 1.64 MB / 426.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1937, allocations: 4 kB / 426.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1937, allocations: 0 / 426.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.1937, allocations: 0 / 426.8 MB, free: 12.08 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.003322/0.1971, allocations: 1.898 MB / 428.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.1971, allocations: 15.89 kB / 428.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.145e-05/0.1972, allocations: 110.7 kB / 428.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.1974, allocations: 147.2 kB / 429 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008786/0.1983, allocations: 0.9621 MB / 429.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.623e-05/0.1984, allocations: 228.1 kB / 430.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.042e-05/0.1984, allocations: 64.38 kB / 430.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.1995, allocations: 0.8316 MB / 431 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.1995, allocations: 8 kB / 431.1 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.1996, allocations: 24 kB / 431.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.1996, allocations: 16 kB / 431.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009396/0.2005, allocations: 0.6728 MB / 431.8 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003837/0.2044, allocations: 3.573 MB / 435.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.2062, allocations: 1.421 MB / 436.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006973/0.2069, allocations: 0.5041 MB / 437.3 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.207, allocations: 110 kB / 437.4 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000811/0.2078, allocations: 0.5397 MB / 437.9 MB, free: 464 kB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 3.016e-06/0.2079, allocations: 4 kB / 437.9 MB, free: 460 kB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007702/0.2156, allocations: 2.531 MB / 440.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002196/0.2158, allocations: 274 kB / 440.7 MB, free: 13.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002671/0.2185, allocations: 1.775 MB / 442.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.025e-05/0.2186, allocations: 45.64 kB / 442.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00053/0.2191, allocations: 0.4937 MB / 443 MB, free: 11.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002762/0.2194, allocations: 283.7 kB / 443.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.2197, allocations: 146.6 kB / 443.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.2199, allocations: 345.9 kB / 443.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006522/0.2205, allocations: 357.8 kB / 444.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007125/0.2213, allocations: 498.8 kB / 444.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006002/0.2273, allocations: 1.959 MB / 446.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2273, allocations: 0 / 446.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003192/0.2305, allocations: 1.411 MB / 448 MB, free: 6.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.2305, allocations: 4 kB / 448 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2305, allocations: 4 kB / 448 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.2323, allocations: 0.5449 MB / 448.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/0.2328, allocations: 119.8 kB / 448.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.2343, allocations: 1.177 MB / 449.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.235, allocations: 87.25 kB / 449.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/0.235, allocations: 31.98 kB / 450 MB, free: 4.172 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.0006588/0.2357, allocations: 452.8 kB / 450.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/0.2359, allocations: 122.5 kB / 450.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003259/0.2392, allocations: 1.487 MB / 452 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.2392, allocations: 12 kB / 452 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2392, allocations: 0 / 452 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.2392, allocations: 4.094 kB / 452 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005334/0.2445, allocations: 3.149 MB / 455.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2446, allocations: 0 / 455.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.2449, allocations: 103.8 kB / 455.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.2467, allocations: 0.5316 MB / 455.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.2468, allocations: 19.98 kB / 455.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.2484, allocations: 1.166 MB / 457 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2484, allocations: 0 / 457 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.2526, allocations: 1.991 MB / 459 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004552/0.2531, allocations: 271.3 kB / 459.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.2534, allocations: 24 kB / 459.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006297/0.254, allocations: 56.02 kB / 459.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.2542, allocations: 68.91 kB / 459.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.729e-05/0.2542, allocations: 31.98 kB / 459.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001872/0.2561, allocations: 1.281 MB / 460.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.2561, allocations: 0 / 460.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008563/0.257, allocations: 251.6 kB / 460.9 MB, free: 9.008 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.005262/0.2623, allocations: 2.723 MB / 463.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003443/0.2657, allocations: 1.132 MB / 464.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.2658, allocations: 4 kB / 464.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001928/0.2677, allocations: 0.688 MB / 465.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.2688, allocations: 110.6 kB / 465.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/0.2907, allocations: 13.88 MB / 479.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007546/0.2915, allocations: 1.173 MB / 480.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000393/0.2919, allocations: 163.2 kB / 480.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005814/0.2925, allocations: 427.3 kB / 481.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2925, allocations: 4 kB / 481.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06555/0.358, allocations: 26.62 MB / 0.496 GB, free: 9.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.13, allocations: 17.61 kB / 0.496 GB, free: 9.891 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)