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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 110.9 kB / 17.85 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 187.7 kB / 20.79 MB, free: 2.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 249.2 MB, free: 3.656 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05042/0.05042, allocations: 8.235 MB / 312.3 MB, free: 2.105 MB / 238.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 75.88 kB / 435.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2134, allocations: 54.35 MB / 489.5 MB, free: 27.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.00473/0.2182, allocations: 4.643 MB / 494.1 MB, free: 23.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.2204, allocations: 1.764 MB / 495.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002871/0.2207, allocations: 11 kB / 495.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007832/0.2215, allocations: 0.4922 MB / 496.4 MB, free: 22.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005818/0.2221, allocations: 398.6 kB / 496.8 MB, free: 21.98 MB / 366.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.001573/0.2237, allocations: 1.089 MB / 497.9 MB, free: 21.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.2244, allocations: 0.8303 MB / 498.7 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.2247, allocations: 227 kB / 498.9 MB, free: 20.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.225, allocations: 385.2 kB / 499.3 MB, free: 20.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006034/0.2256, allocations: 0.5985 MB / 499.9 MB, free: 19.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.2257, allocations: 80.19 kB / 500 MB, free: 19.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005089/0.2262, allocations: 310.1 kB / 0.4886 GB, free: 19.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.2265, allocations: 426.1 kB / 0.489 GB, free: 19.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003872/0.2269, allocations: 0.6075 MB / 0.4896 GB, free: 19.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.2282, allocations: 1.657 MB / 0.4912 GB, free: 17.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2283, allocations: 1.25 kB / 0.4912 GB, free: 17.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2283, allocations: 4 kB / 0.4912 GB, free: 17.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.2283, allocations: 0 / 0.4912 GB, free: 17.96 MB / 366.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.003945/0.2322, allocations: 1.943 MB / 0.4931 GB, free: 16.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2322, allocations: 12.8 kB / 0.4931 GB, free: 16.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.2325, allocations: 154.8 kB / 0.4932 GB, free: 16.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.2336, allocations: 0.971 MB / 0.4942 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.2337, allocations: 225.5 kB / 0.4944 GB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-05/0.2338, allocations: 65.22 kB / 0.4945 GB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.235, allocations: 0.8424 MB / 0.4953 GB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.235, allocations: 1.281 kB / 0.4953 GB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.273e-05/0.2351, allocations: 25.56 kB / 0.4953 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.2351, allocations: 19.47 kB / 0.4953 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.2362, allocations: 0.6699 MB / 0.496 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004138/0.2403, allocations: 3.552 MB / 0.4995 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.2422, allocations: 1.346 MB / 0.5008 GB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000728/0.2429, allocations: 450.5 kB / 0.5012 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001383/0.243, allocations: 103.2 kB / 0.5013 GB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008484/0.2439, allocations: 0.5379 MB / 0.5018 GB, free: 10.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.504e-06/0.2439, allocations: 5.5 kB / 0.5018 GB, free: 10.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.00768/0.2516, allocations: 2.514 MB / 0.5043 GB, free: 8.809 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.2516, allocations: 272.2 kB / 0.5045 GB, free: 8.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.2534, allocations: 1.783 MB / 0.5063 GB, free: 6.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.2535, allocations: 53.64 kB / 0.5063 GB, free: 6.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.2538, allocations: 490.1 kB / 0.5068 GB, free: 6.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.2539, allocations: 313.3 kB / 0.5071 GB, free: 6.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.2541, allocations: 146.6 kB / 0.5072 GB, free: 5.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.717e-05/0.2541, allocations: 337.9 kB / 0.5076 GB, free: 5.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/0.2547, allocations: 353.8 kB / 0.5079 GB, free: 5.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005957/0.2553, allocations: 0.491 MB / 0.5084 GB, free: 4.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005457/0.2607, allocations: 1.963 MB / 0.5103 GB, free: 2.699 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2607, allocations: 0 / 0.5103 GB, free: 2.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002889/0.2636, allocations: 1.396 MB / 0.5117 GB, free: 1.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2636, allocations: 7.984 kB / 0.5117 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2637, allocations: 4 kB / 0.5117 GB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.2653, allocations: 0.5488 MB / 0.5122 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.2657, allocations: 107.9 kB / 0.5123 GB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/0.2673, allocations: 1.186 MB / 0.5135 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007196/0.268, allocations: 83.48 kB / 0.5135 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.504e-05/0.2681, allocations: 31.98 kB / 0.5136 GB, free: 15.3 MB / 382.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.0007865/0.2688, allocations: 470.3 kB / 0.514 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002297/0.2691, allocations: 123.2 kB / 0.5141 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003916/0.273, allocations: 1.459 MB / 0.5156 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.273, allocations: 8 kB / 0.5156 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.273, allocations: 4 kB / 0.5156 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.273, allocations: 3.984 kB / 0.5156 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005865/0.2789, allocations: 3.13 MB / 0.5186 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.2789, allocations: 0 / 0.5186 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.2793, allocations: 99.88 kB / 0.5187 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/0.2812, allocations: 0.5237 MB / 0.5192 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.2812, allocations: 23.98 kB / 0.5193 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.2829, allocations: 1.162 MB / 0.5204 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2829, allocations: 0 / 0.5204 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004413/0.2874, allocations: 1.986 MB / 0.5223 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004362/0.2878, allocations: 272 kB / 0.5226 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.2879, allocations: 27.94 kB / 0.5226 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005701/0.2885, allocations: 56.12 kB / 0.5227 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.2887, allocations: 72.83 kB / 0.5228 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.045e-05/0.2887, allocations: 28 kB / 0.5228 GB, free: 5.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001777/0.2905, allocations: 1.285 MB / 0.524 GB, free: 4.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2905, allocations: 0 / 0.524 GB, free: 4.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007337/0.2913, allocations: 243.7 kB / 0.5243 GB, free: 4.18 MB / 382.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.0009786/0.2922, allocations: 303.1 kB / 0.5246 GB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002829/0.2951, allocations: 1.046 MB / 0.5256 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2951, allocations: 4.062 kB / 0.5256 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.297, allocations: 0.6265 MB / 0.5262 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007329/0.2977, allocations: 108.4 kB / 0.5263 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004781/0.3025, allocations: 2.597 MB / 0.5288 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008888/0.3034, allocations: 1.173 MB / 0.53 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.3037, allocations: 83.41 kB / 0.5301 GB, free: 14.27 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3037, allocations: 0 / 0.5301 GB, free: 14.27 MB / 398.1 MB Notification: Performance of Templates: time 0.02682/0.3305, allocations: 19.46 MB / 0.5491 GB, free: 10.81 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.146488493075594] Failed to read output from testmodel.py, exit status != 0: 0.3383686300367117 0.35078921300000004 0.119780072 Calling exit ...