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: 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.00121/0.00121, allocations: 100.3 kB / 15.73 MB, free: 436 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.001423/0.001423, allocations: 180.6 kB / 16.62 MB, free: 6.176 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.416/1.416, allocations: 223.2 MB / 240.6 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.155/0.155, allocations: 8.091 MB / 299.7 MB, free: 3 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003215, allocations: 8 kB / 362.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1232, allocations: 52.51 MB / 415.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004763/0.128, allocations: 3.796 MB / 419.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.1308, allocations: 1.621 MB / 420.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1311, allocations: 8 kB / 420.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008115/0.132, allocations: 434.5 kB / 421.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006449/0.1326, allocations: 371.1 kB / 421.5 MB, free: 2.508 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.001705/0.1343, allocations: 0.8643 MB / 422.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008931/0.1352, allocations: 0.5307 MB / 422.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004406/0.1357, allocations: 245.4 kB / 423.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.136, allocations: 310.9 kB / 423.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006033/0.1366, allocations: 438.5 kB / 423.8 MB, free: 136 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.878e-05/0.1367, allocations: 40 kB / 423.9 MB, free: 96 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2281/0.3649, allocations: 218.5 kB / 424.1 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004257/0.3653, allocations: 375.6 kB / 424.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.3656, allocations: 233.1 kB / 424.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.3669, allocations: 1.267 MB / 426 MB, free: 36.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3669, allocations: 6.281 kB / 426 MB, free: 36.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3669, allocations: 0 / 426 MB, free: 36.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.3669, allocations: 0 / 426 MB, free: 36.45 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.00349/0.3704, allocations: 1.69 MB / 427.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3705, allocations: 11.98 kB / 427.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.3707, allocations: 148.4 kB / 427.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.372, allocations: 0.9178 MB / 428.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.3722, allocations: 224.2 kB / 429 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.3723, allocations: 62.03 kB / 429 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3737, allocations: 0.8243 MB / 429.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3738, allocations: 4 kB / 429.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.3738, allocations: 34.03 kB / 429.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.3739, allocations: 20.33 kB / 429.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009938/0.3749, allocations: 0.6773 MB / 430.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004883/0.3798, allocations: 3.603 MB / 434.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.3817, allocations: 1.44 MB / 435.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.3819, allocations: 104.2 kB / 435.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008301/0.3827, allocations: 0.5023 MB / 436.2 MB, free: 33.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 6.162e-06/0.3828, allocations: 4 kB / 436.2 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.007634/0.3904, allocations: 2.61 MB / 438.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.3905, allocations: 244.5 kB / 439.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.393, allocations: 1.782 MB / 440.9 MB, free: 32.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/0.3932, allocations: 44.98 kB / 440.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.3936, allocations: 496.5 kB / 441.4 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.3938, allocations: 289.3 kB / 441.7 MB, free: 31.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.3939, allocations: 15.25 kB / 441.7 MB, free: 31.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.232e-05/0.394, allocations: 341.8 kB / 442 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/0.3946, allocations: 372.4 kB / 442.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.3952, allocations: 0.4895 MB / 442.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.3959, allocations: 391.1 kB / 443.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3959, allocations: 0 / 443.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003089/0.399, allocations: 1.45 MB / 444.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.399, allocations: 6.031 kB / 444.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3991, allocations: 4.844 kB / 444.7 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/0.4008, allocations: 0.555 MB / 445.3 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.4012, allocations: 121.2 kB / 445.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.4026, allocations: 1.212 MB / 446.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/0.4034, allocations: 84.67 kB / 446.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.527e-05/0.4034, allocations: 30.77 kB / 446.7 MB, free: 29.29 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.000708/0.4041, allocations: 451.5 kB / 447.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.4043, allocations: 126 kB / 447.3 MB, free: 28.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.4074, allocations: 1.53 MB / 448.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4074, allocations: 9.156 kB / 448.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.4074, allocations: 10.08 kB / 448.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4074, allocations: 3.422 kB / 448.8 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004674/0.4121, allocations: 2.915 MB / 451.7 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4121, allocations: 0 / 451.7 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.4125, allocations: 101.6 kB / 451.8 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/0.4142, allocations: 0.5504 MB / 452.4 MB, free: 26.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-05/0.4142, allocations: 19.28 kB / 452.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.4156, allocations: 1.199 MB / 453.6 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.279e-06/0.4156, allocations: 7.078 kB / 453.6 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003641/0.4192, allocations: 2.04 MB / 455.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005669/0.4198, allocations: 276.2 kB / 455.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.42, allocations: 19 kB / 455.9 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.4205, allocations: 71.38 kB / 456 MB, free: 24.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.4207, allocations: 71.61 kB / 456.1 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.4207, allocations: 23.56 kB / 456.1 MB, free: 24.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001554/0.4223, allocations: 1.285 MB / 457.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4223, allocations: 0 / 457.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007733/0.4231, allocations: 245.4 kB / 457.6 MB, free: 24.41 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.0007381/0.4238, allocations: 305.1 kB / 457.9 MB, free: 24.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002879/0.4267, allocations: 1.116 MB / 459 MB, free: 23.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4267, allocations: 5.094 kB / 459 MB, free: 23.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.4286, allocations: 0.6921 MB / 459.7 MB, free: 23.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/0.4294, allocations: 96.2 kB / 459.8 MB, free: 23.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004858/0.4343, allocations: 2.78 MB / 462.6 MB, free: 22.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/0.435, allocations: 1.198 MB / 463.8 MB, free: 21.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005179/0.4356, allocations: 166.1 kB / 464 MB, free: 21.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.4358, allocations: 72.5 kB / 464 MB, free: 21.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.956e-06/0.4358, allocations: 0 / 464 MB, free: 21.48 MB / 350.1 MB Notification: Performance of Templates: time 0.02735/0.4631, allocations: 13.62 MB / 477.7 MB, free: 19.21 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1) Environment - environmentSimulation: