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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 97.45 kB / 290.6 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04428/0.04428, allocations: 8.089 MB / 348.8 MB, free: 0.7109 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000969/0.0009691, allocations: 60.11 kB / 411.1 MB, free: 57.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07823/0.07921, allocations: 51.52 MB / 462.6 MB, free: 6.078 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005255/0.08453, allocations: 4.606 MB / 467.2 MB, free: 1.445 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.08697, allocations: 1.732 MB / 469 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/0.08726, allocations: 8 kB / 469 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008828/0.08819, allocations: 482.8 kB / 469.4 MB, free: 15.22 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006384/0.08884, allocations: 354.5 kB / 469.8 MB, free: 14.88 MB / 314.7 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.001925/0.09077, allocations: 1.031 MB / 470.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008578/0.09164, allocations: 0.8061 MB / 471.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000472/0.09212, allocations: 281.2 kB / 471.9 MB, free: 12.76 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.09246, allocations: 346.7 kB / 472.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006033/0.09307, allocations: 0.5607 MB / 472.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.661e-05/0.09318, allocations: 52 kB / 472.8 MB, free: 11.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.09379, allocations: 279.8 kB / 473.1 MB, free: 11.53 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002937/0.0941, allocations: 402.7 kB / 473.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004547/0.09456, allocations: 0.5591 MB / 474.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.09595, allocations: 1.597 MB / 475.7 MB, free: 8.973 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.09597, allocations: 4 kB / 475.7 MB, free: 8.969 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.09597, allocations: 0 / 475.7 MB, free: 8.969 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.09599, allocations: 3.938 kB / 475.7 MB, free: 8.965 MB / 314.7 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.004181/0.1002, allocations: 1.906 MB / 477.6 MB, free: 7.004 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1002, allocations: 12.03 kB / 477.6 MB, free: 6.992 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.1005, allocations: 147.2 kB / 477.7 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.1019, allocations: 0.97 MB / 478.7 MB, free: 5.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.1021, allocations: 220.1 kB / 478.9 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1022, allocations: 64.38 kB / 479 MB, free: 5.508 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1036, allocations: 0.8396 MB / 479.8 MB, free: 4.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1036, allocations: 3.984 kB / 479.8 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.1037, allocations: 24 kB / 479.8 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1037, allocations: 12 kB / 479.9 MB, free: 4.598 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.1049, allocations: 0.6806 MB / 480.5 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004967/0.1098, allocations: 3.565 MB / 484.1 MB, free: 172 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.171/0.2809, allocations: 1.426 MB / 485.5 MB, free: 27.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008543/0.2818, allocations: 0.4976 MB / 486 MB, free: 27.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001443/0.282, allocations: 103.3 kB / 486.1 MB, free: 27.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009382/0.2829, allocations: 0.5431 MB / 486.7 MB, free: 27.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 2.905e-06/0.2829, allocations: 0 / 486.7 MB, free: 27.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=89): time 0.008011/0.2909, allocations: 2.531 MB / 489.2 MB, free: 26.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.291, allocations: 270.1 kB / 489.5 MB, free: 26.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001993/0.293, allocations: 1.786 MB / 491.3 MB, free: 25.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.545e-05/0.2931, allocations: 43.64 kB / 491.3 MB, free: 25.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003652/0.2935, allocations: 495.5 kB / 491.8 MB, free: 25.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.2937, allocations: 293.1 kB / 492.1 MB, free: 24.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.2939, allocations: 154 kB / 492.2 MB, free: 24.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.294, allocations: 340.2 kB / 492.5 MB, free: 24.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000623/0.2946, allocations: 356.7 kB / 492.9 MB, free: 24.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008775/0.2955, allocations: 0.4944 MB / 493.4 MB, free: 24.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006207/0.3017, allocations: 1.944 MB / 495.3 MB, free: 23.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3018, allocations: 0.875 kB / 495.3 MB, free: 23.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003291/0.3051, allocations: 1.407 MB / 496.7 MB, free: 22.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.3051, allocations: 14.06 kB / 496.8 MB, free: 22.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3051, allocations: 2.203 kB / 496.8 MB, free: 22.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/0.307, allocations: 0.5487 MB / 497.3 MB, free: 22.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.3074, allocations: 112 kB / 497.4 MB, free: 22.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.3088, allocations: 1.176 MB / 498.6 MB, free: 21.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006683/0.3095, allocations: 79.14 kB / 498.7 MB, free: 21.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.909e-05/0.3096, allocations: 35.16 kB / 498.7 MB, free: 21.7 MB / 314.7 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.0005812/0.3102, allocations: 458 kB / 499.1 MB, free: 21.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.3103, allocations: 121.2 kB / 499.3 MB, free: 21.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003209/0.3135, allocations: 1.488 MB / 0.489 GB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.3135, allocations: 17.05 kB / 0.489 GB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3136, allocations: 2.031 kB / 0.489 GB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3136, allocations: 4.453 kB / 0.489 GB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004902/0.3185, allocations: 3.141 MB / 0.4921 GB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3185, allocations: 4.031 kB / 0.4921 GB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.3189, allocations: 105.8 kB / 0.4922 GB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/0.3205, allocations: 0.5293 MB / 0.4927 GB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.3206, allocations: 18.66 kB / 0.4927 GB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/0.3219, allocations: 1.158 MB / 0.4939 GB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.322, allocations: 6.422 kB / 0.4939 GB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02529/0.3473, allocations: 15.32 MB / 0.5088 GB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003672/0.3477, allocations: 275.3 kB / 0.5091 GB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.3478, allocations: 20 kB / 0.5091 GB, free: 3.367 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.3483, allocations: 56.02 kB / 0.5092 GB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3485, allocations: 64.91 kB / 0.5092 GB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.095e-05/0.3486, allocations: 27.98 kB / 0.5093 GB, free: 3.219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001299/0.3499, allocations: 1.289 MB / 0.5105 GB, free: 1.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3499, allocations: 0 / 0.5105 GB, free: 1.922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009813/0.3509, allocations: 371.2 kB / 0.5109 GB, free: 1.566 MB / 314.7 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.0007004/0.3516, allocations: 348.2 kB / 0.5112 GB, free: 1.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.354, allocations: 1.09 MB / 0.5123 GB, free: 264 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.354, allocations: 0 / 0.5123 GB, free: 264 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.3559, allocations: 0.6698 MB / 0.5129 GB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3572, allocations: 118.9 kB / 0.513 GB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006765/0.3639, allocations: 3.827 MB / 0.5168 GB, free: 11.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000826/0.3648, allocations: 1.219 MB / 0.518 GB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.3653, allocations: 167.2 kB / 0.5181 GB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.3656, allocations: 75.41 kB / 0.5182 GB, free: 10.12 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3656, allocations: 0 / 0.5182 GB, free: 10.12 MB / 330.7 MB Notification: Performance of Templates: time 0.02805/0.3936, allocations: 19.04 MB / 0.5368 GB, free: 7.141 MB / 346.7 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)