Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.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/BusinessSimulation 2.2.0/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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(BusinessSimulation.Examples.LoveHateDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics") translateModel(BusinessSimulation.Examples.LoveHateDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 114 kB / 16.42 MB, free: 6.402 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.001723/0.001723, allocations: 183.9 kB / 17.35 MB, free: 5.719 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1699/0.1699, allocations: 31.13 MB / 322.3 MB, free: 76 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 447.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1066, allocations: 56.36 MB / 0.4919 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LoveHateDynamics): time 0.007648/0.1143, allocations: 6.532 MB / 0.4983 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.1165, allocations: 1.024 MB / 0.4993 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005884/0.1171, allocations: 19.94 kB / 0.4993 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004864/0.1176, allocations: 154.5 kB / 0.4994 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.118, allocations: 67.23 kB / 0.4995 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000916/0.1189, allocations: 411.4 kB / 0.4999 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.1199, allocations: 0.9332 MB / 0.5008 GB, free: 188 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2266/0.3465, allocations: 0.7225 MB / 0.5015 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/0.3471, allocations: 429.8 kB / 0.5019 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003292/0.3474, allocations: 443.3 kB / 0.5023 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3476, allocations: 157.6 kB / 0.5025 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.3479, allocations: 166.8 kB / 0.5027 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.348, allocations: 289.6 kB / 0.5029 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.3484, allocations: 0.5051 MB / 0.5034 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.3495, allocations: 1.327 MB / 0.5047 GB, free: 5.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3495, allocations: 0.6562 kB / 0.5047 GB, free: 5.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3495, allocations: 0.6562 kB / 0.5047 GB, free: 5.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.3495, allocations: 0 / 0.5047 GB, free: 5.641 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.001444/0.351, allocations: 1.083 MB / 0.5058 GB, free: 5.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.351, allocations: 10.94 kB / 0.5058 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.3524, allocations: 204.4 kB / 0.506 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007213/0.3531, allocations: 0.5062 MB / 0.5065 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.3532, allocations: 109 kB / 0.5066 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.3534, allocations: 117.6 kB / 0.5067 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.355, allocations: 1.017 MB / 0.5077 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.3551, allocations: 0 / 0.5077 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.718e-05/0.3551, allocations: 41 kB / 0.5077 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.3552, allocations: 24.66 kB / 0.5078 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.3564, allocations: 0.6178 MB / 0.5084 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004187/0.3606, allocations: 3.762 MB / 0.512 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.361, allocations: 272.1 kB / 0.5123 GB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005636/0.3616, allocations: 358.4 kB / 0.5126 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.3616, allocations: 9.688 kB / 0.5126 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3617, allocations: 43.12 kB / 0.5127 GB, free: 3.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=60): time 2.365e-06/0.3617, allocations: 0 / 0.5127 GB, free: 3.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=60): time 0.001083/0.3628, allocations: 0.6063 MB / 0.5133 GB, free: 2.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.3628, allocations: 187.4 kB / 0.5135 GB, free: 2.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004263/0.3633, allocations: 448.8 kB / 0.5139 GB, free: 2.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.3633, allocations: 60.73 kB / 0.5139 GB, free: 2.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.3636, allocations: 410.2 kB / 0.5143 GB, free: 2.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.3637, allocations: 167.9 kB / 0.5145 GB, free: 2.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.364, allocations: 217.4 kB / 0.5147 GB, free: 2.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3641, allocations: 369.5 kB / 0.5151 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005816/0.3647, allocations: 291.1 kB / 0.5153 GB, free: 1.883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007034/0.3654, allocations: 0.594 MB / 0.5159 GB, free: 1.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.3662, allocations: 0.6919 MB / 0.5166 GB, free: 1.141 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3662, allocations: 2.031 kB / 0.5166 GB, free: 1.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001418/0.3677, allocations: 0.8828 MB / 0.5174 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3677, allocations: 9.141 kB / 0.5175 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.3677, allocations: 8.25 kB / 0.5175 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3677, allocations: 15.17 kB / 0.5175 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.3681, allocations: 116.5 kB / 0.5176 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.3681, allocations: 18.61 kB / 0.5176 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.3685, allocations: 116.5 kB / 0.5177 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.969e-05/0.3686, allocations: 44.27 kB / 0.5178 GB, free: 0.7109 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 88 ($PRE.romeo.inflow.stopInflow,$PRE.romeo.outflow.stopInflow,$PRE.romeo.inflow.stopOutflow,$PRE.romeo.outflow.stopOutflow,$PRE.juliet.inflow.stopInflow,$PRE.juliet.outflow.stopInflow,$PRE.juliet.inflow.stopOutflow,$PRE.juliet.outflow.stopOutflow,$PRE.loving.growingA1.cloud.massPort.stopInflow,$PRE.loving.growingA1.cloud.massPort.stopOutflow,$PRE.loving.growingA2.cloud.massPort.stopInflow,$PRE.loving.growingA2.cloud.massPort.stopOutflow,$PRE.loving.growingA3.cloud.massPort.stopInflow,$PRE.loving.growingA3.cloud.massPort.stopOutflow,$PRE.loving.growingB1.cloud.massPort.stopInflow,$PRE.loving.growingB1.cloud.massPort.stopOutflow,$PRE.loving.growingB2.cloud.massPort.stopInflow,$PRE.loving.growingB2.cloud.massPort.stopOutflow,$PRE.loving.growingB3.cloud.massPort.stopInflow,$PRE.loving.growingB3.cloud.massPort.stopOutflow,loving.growingB3.cloud.massPort.stopOutflow,loving.growingB3.cloud.massPort.stopInflow,loving.growingB2.cloud.massPort.stopOutflow,loving.growingB2.cloud.massPort.stopInflow,loving.growingB1.cloud.massPort.stopOutflow,loving.growingB1.cloud.massPort.stopInflow,loving.growingA3.cloud.massPort.stopOutflow,loving.growingA3.cloud.massPort.stopInflow,loving.growingA2.cloud.massPort.stopOutflow,loving.growingA2.cloud.massPort.stopInflow,loving.growingA1.cloud.massPort.stopOutflow,loving.growingA1.cloud.massPort.stopInflow,juliet.inflow.stopOutflow,juliet.inflow.stopInflow,romeo.outflow.stopOutflow,romeo.outflow.stopInflow,loving.growingB3.switching.useB_rate,$PRE.loving.growingB3.switching.useB_rate,loving.growingB3.switching.useA_rate,$PRE.loving.growingB3.switching.useA_rate,loving.growingB3.switching.portB.stopOutflow,loving.growingB3.switching.portB.stopInflow,loving.growingB3.switching.portA.stopOutflow,loving.growingB3.switching.portA.stopInflow,loving.growingB2.changing.useB_rate,$PRE.loving.growingB2.changing.useB_rate,loving.growingB2.changing.useA_rate,$PRE.loving.growingB2.changing.useA_rate,loving.growingB2.changing.portB.stopOutflow,loving.growingB2.changing.portB.stopInflow,loving.growingB2.changing.portA.stopOutflow,loving.growingB2.changing.portA.stopInflow,loving.growingB1.switching.useB_rate,$PRE.loving.growingB1.switching.useB_rate,loving.growingB1.switching.useA_rate,$PRE.loving.growingB1.switching.useA_rate,loving.growingB1.switching.portB.stopOutflow,loving.growingB1.switching.portB.stopInflow,loving.growingB1.switching.portA.stopOutflow,loving.growingB1.switching.portA.stopInflow,loving.growingA3.switching.useB_rate,$PRE.loving.growingA3.switching.useB_rate,loving.growingA3.switching.useA_rate,$PRE.loving.growingA3.switching.useA_rate,loving.growingA3.switching.portB.stopOutflow,loving.growingA3.switching.portB.stopInflow,loving.growingA3.switching.portA.stopOutflow,loving.growingA3.switching.portA.stopInflow,loving.growingA2.changing.useB_rate,$PRE.loving.growingA2.changing.useB_rate,loving.growingA2.changing.useA_rate,$PRE.loving.growingA2.changing.useA_rate,loving.growingA2.changing.portB.stopOutflow,loving.growingA2.changing.portB.stopInflow,loving.growingA2.changing.portA.stopOutflow,loving.growingA2.changing.portA.stopInflow,loving.growingA1.switching.useB_rate,$PRE.loving.growingA1.switching.useB_rate,loving.growingA1.switching.useA_rate,$PRE.loving.growingA1.switching.useA_rate,loving.growingA1.switching.portB.stopOutflow,loving.growingA1.switching.portB.stopInflow,loving.growingA1.switching.portA.stopOutflow,loving.growingA1.switching.portA.stopInflow,juliet.outflow.stopOutflow,juliet.outflow.stopInflow,romeo.inflow.stopOutflow,romeo.inflow.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003078/0.3689, allocations: 330.7 kB / 0.5181 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.496e-05/0.369, allocations: 51.97 kB / 0.5181 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.3691, allocations: 56.64 kB / 0.5182 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3691, allocations: 7.453 kB / 0.5182 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3691, allocations: 4 kB / 0.5182 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.3693, allocations: 186.9 kB / 0.5184 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.3694, allocations: 11.5 kB / 0.5184 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.3696, allocations: 18.19 kB / 0.5184 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.3698, allocations: 93.53 kB / 0.5185 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008971/0.3707, allocations: 0.5288 MB / 0.519 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001291/0.372, allocations: 0.8911 MB / 0.5199 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004228/0.3724, allocations: 263.3 kB / 0.5201 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.3727, allocations: 275.7 kB / 0.5204 GB, free: 15.14 MB / 398.1 MB Notification: Performance of Backend: time 6.21e-07/0.3727, allocations: 0 / 0.5204 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.374, allocations: 0.5926 MB / 0.521 GB, free: 14.91 MB / 398.1 MB Notification: Performance of SimCode: time 0.001936/0.3759, allocations: 1.508 MB / 0.5224 GB, free: 13.84 MB / 398.1 MB Notification: Performance of Templates: time 0.01567/0.3916, allocations: 8.626 MB / 0.5309 GB, free: 11.08 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.makefile (rm -f BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.sim & ./BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.pipe 2>&1)