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: translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 107.5 kB / 17.07 MB, free: 5.68 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.00111/0.00111, allocations: 194.9 kB / 18.01 MB, free: 5.02 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04707/0.04707, allocations: 8.098 MB / 300 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.91 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1928, allocations: 51.53 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004486/0.1973, allocations: 4.595 MB / 419.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.1997, allocations: 1.748 MB / 421 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.1999, allocations: 12 kB / 421 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007301/0.2007, allocations: 0.4959 MB / 421.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005653/0.2013, allocations: 390 kB / 421.9 MB, free: 18.16 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.001469/0.2028, allocations: 1.078 MB / 423 MB, free: 17.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006262/0.2034, allocations: 0.8334 MB / 423.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.2037, allocations: 325.5 kB / 424.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.204, allocations: 386.7 kB / 424.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004798/0.2045, allocations: 0.5763 MB / 425.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.593e-05/0.2046, allocations: 80 kB / 425.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004615/0.2051, allocations: 307.8 kB / 425.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.2053, allocations: 430.7 kB / 425.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.2057, allocations: 0.5943 MB / 426.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.2068, allocations: 1.659 MB / 428.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2068, allocations: 0 / 428.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2068, allocations: 4 kB / 428.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.2068, allocations: 4 kB / 428.2 MB, free: 11.9 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.003532/0.2103, allocations: 1.902 MB / 430.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.2104, allocations: 15.89 kB / 430.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.2106, allocations: 147.2 kB / 430.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.2117, allocations: 0.9699 MB / 431.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.2119, allocations: 220.1 kB / 431.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.451e-05/0.212, allocations: 60.38 kB / 431.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.2131, allocations: 0.8357 MB / 432.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.2131, allocations: 0 / 432.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.56e-05/0.2131, allocations: 31.98 kB / 432.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.2132, allocations: 12 kB / 432.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009062/0.2141, allocations: 0.6806 MB / 433 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.2179, allocations: 3.557 MB / 436.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.2196, allocations: 1.425 MB / 438 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006686/0.2203, allocations: 0.5041 MB / 438.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.2204, allocations: 102.1 kB / 438.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008166/0.2212, allocations: 0.5437 MB / 439.2 MB, free: 408 kB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.234e-06/0.2213, allocations: 0 / 439.2 MB, free: 408 kB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007362/0.2286, allocations: 2.523 MB / 441.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.2288, allocations: 282 kB / 442 MB, free: 13.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/0.2309, allocations: 1.783 MB / 443.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/0.231, allocations: 45.7 kB / 443.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003986/0.2314, allocations: 485.6 kB / 444.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/0.2317, allocations: 295.6 kB / 444.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.2319, allocations: 150.6 kB / 444.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2321, allocations: 330 kB / 445 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000641/0.2327, allocations: 365.8 kB / 445.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007447/0.2335, allocations: 0.491 MB / 445.9 MB, free: 9.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005834/0.2393, allocations: 1.944 MB / 447.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2393, allocations: 0 / 447.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003281/0.2426, allocations: 1.419 MB / 449.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.2426, allocations: 8 kB / 449.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.2427, allocations: 4 kB / 449.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001769/0.2444, allocations: 0.541 MB / 449.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004306/0.2449, allocations: 111.8 kB / 449.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.2465, allocations: 1.181 MB / 451.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006248/0.2471, allocations: 87.19 kB / 451.2 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-05/0.2472, allocations: 31.98 kB / 451.2 MB, free: 4.129 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.0006589/0.2479, allocations: 460.6 kB / 451.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.248, allocations: 122.4 kB / 451.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/0.2512, allocations: 1.483 MB / 453.2 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2512, allocations: 12 kB / 453.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2513, allocations: 0 / 453.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.2513, allocations: 3.984 kB / 453.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00515/0.2564, allocations: 3.145 MB / 456.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.2564, allocations: 0 / 456.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.2568, allocations: 111.8 kB / 456.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001659/0.2585, allocations: 0.5199 MB / 457 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.2586, allocations: 19.98 kB / 457.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.2601, allocations: 1.166 MB / 458.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2601, allocations: 3.938 kB / 458.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003902/0.264, allocations: 1.993 MB / 460.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004971/0.2645, allocations: 271.4 kB / 460.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.2646, allocations: 23.94 kB / 460.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005132/0.2652, allocations: 55.52 kB / 460.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.2653, allocations: 76.89 kB / 460.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.2654, allocations: 24.11 kB / 460.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001635/0.267, allocations: 1.289 MB / 461.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.267, allocations: 0 / 461.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007318/0.2678, allocations: 239.7 kB / 462.2 MB, free: 8.973 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.0007194/0.2685, allocations: 287.7 kB / 462.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.2712, allocations: 1.105 MB / 463.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2712, allocations: 4 kB / 463.6 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.273, allocations: 0.6764 MB / 464.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006617/0.2736, allocations: 114.6 kB / 464.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.2778, allocations: 2.467 MB / 466.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009523/0.2788, allocations: 1.185 MB / 468 MB, free: 3.164 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003794/0.2792, allocations: 163.2 kB / 468.2 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.2794, allocations: 75.42 kB / 468.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2794, allocations: 0 / 468.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of Templates: time 0.02418/0.3036, allocations: 15.28 MB / 483.5 MB, free: 3.684 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)