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.001164/0.001164, allocations: 102.2 kB / 16.57 MB, free: 6.262 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.001158/0.001158, allocations: 193.6 kB / 17.49 MB, free: 5.875 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.326/1.326, allocations: 222.9 MB / 241.2 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04808/0.04808, allocations: 8.101 MB / 299.4 MB, free: 6.898 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.89 kB / 361.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2037, allocations: 51.52 MB / 413.2 MB, free: 25.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004448/0.2082, allocations: 4.599 MB / 417.8 MB, free: 21.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.2105, allocations: 1.744 MB / 419.6 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003908/0.2109, allocations: 8 kB / 419.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008333/0.2118, allocations: 472.5 kB / 420 MB, free: 18.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006713/0.2125, allocations: 358.4 kB / 420.4 MB, free: 18.61 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.001662/0.2142, allocations: 1.027 MB / 421.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007804/0.2149, allocations: 0.7944 MB / 422.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.2153, allocations: 277.2 kB / 422.5 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.2156, allocations: 350.7 kB / 422.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005184/0.2162, allocations: 0.5685 MB / 423.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.759e-05/0.2163, allocations: 52 kB / 423.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005213/0.2168, allocations: 271.8 kB / 423.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.2171, allocations: 398.7 kB / 424.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.2175, allocations: 0.563 MB / 424.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009456/0.2184, allocations: 1.302 MB / 425.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2184, allocations: 0 / 425.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2184, allocations: 4 kB / 425.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.2185, allocations: 0 / 425.9 MB, free: 13.02 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.004199/0.2227, allocations: 1.906 MB / 427.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2227, allocations: 15.97 kB / 427.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/0.223, allocations: 143.2 kB / 428 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.2241, allocations: 0.966 MB / 429 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.2242, allocations: 224.1 kB / 429.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.2243, allocations: 64.36 kB / 429.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.2256, allocations: 0.8396 MB / 430.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2256, allocations: 0 / 430.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.2257, allocations: 28 kB / 430.1 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2257, allocations: 15.94 kB / 430.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009979/0.2267, allocations: 0.6845 MB / 430.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004427/0.2312, allocations: 3.573 MB / 434.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.2331, allocations: 1.428 MB / 435.8 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007769/0.2339, allocations: 0.4963 MB / 436.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.234, allocations: 102.1 kB / 436.4 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009044/0.235, allocations: 0.5437 MB / 437 MB, free: 1.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 2.705e-06/0.235, allocations: 0 / 437 MB, free: 1.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=89): time 0.007805/0.2428, allocations: 2.527 MB / 439.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.243, allocations: 274 kB / 439.8 MB, free: 14.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002432/0.2454, allocations: 1.779 MB / 441.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.2456, allocations: 45.7 kB / 441.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004363/0.246, allocations: 489.6 kB / 442.1 MB, free: 12.28 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/0.2463, allocations: 295.7 kB / 442.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.2466, allocations: 146.6 kB / 442.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2467, allocations: 330 kB / 442.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007029/0.2474, allocations: 365.8 kB / 443.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008125/0.2483, allocations: 0.4949 MB / 443.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006466/0.2547, allocations: 1.947 MB / 445.6 MB, free: 8.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.2548, allocations: 3.938 kB / 445.6 MB, free: 8.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003633/0.2584, allocations: 1.419 MB / 447 MB, free: 7.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.2585, allocations: 8 kB / 447 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2585, allocations: 0 / 447 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/0.2604, allocations: 0.541 MB / 447.6 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.2609, allocations: 111.8 kB / 447.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.2626, allocations: 1.181 MB / 448.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007712/0.2634, allocations: 91.19 kB / 449 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.262e-05/0.2635, allocations: 28 kB / 449 MB, free: 5.227 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.0007385/0.2643, allocations: 451.9 kB / 449.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002649/0.2645, allocations: 118.5 kB / 449.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003572/0.2681, allocations: 1.494 MB / 451 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.2682, allocations: 12 kB / 451.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.2682, allocations: 0 / 451.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.2682, allocations: 7.922 kB / 451.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005793/0.274, allocations: 3.146 MB / 454.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.274, allocations: 4 kB / 454.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.2745, allocations: 103.9 kB / 454.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/0.2763, allocations: 0.5276 MB / 454.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.773e-05/0.2764, allocations: 20 kB / 454.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001688/0.2781, allocations: 1.158 MB / 456 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2782, allocations: 0 / 456 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.2826, allocations: 2.003 MB / 458 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005365/0.2832, allocations: 263.4 kB / 458.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.2834, allocations: 23.92 kB / 458.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.284, allocations: 63.64 kB / 458.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.2842, allocations: 72.78 kB / 458.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.379e-05/0.2843, allocations: 27.98 kB / 458.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001764/0.2861, allocations: 1.281 MB / 459.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2861, allocations: 0 / 459.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009324/0.287, allocations: 243.7 kB / 460 MB, free: 10.07 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.0007915/0.2878, allocations: 300.6 kB / 460.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.2908, allocations: 1.081 MB / 461.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.2908, allocations: 8.062 kB / 461.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00197/0.2928, allocations: 0.6644 MB / 462 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.2939, allocations: 112.4 kB / 462.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005409/0.2993, allocations: 2.952 MB / 465.1 MB, free: 4.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009034/0.3003, allocations: 1.181 MB / 466.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.3007, allocations: 71.42 kB / 466.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3007, allocations: 4 kB / 466.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of Templates: time 0.0276/0.3283, allocations: 19.27 MB / 485.6 MB, free: 452 kB / 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)