Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_dev_BusinessSimulation.Examples.LoveHateDynamics") translateModel(BusinessSimulation.Examples.LoveHateDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 115.1 kB / 16.42 MB, free: 5.988 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.001211/0.001211, allocations: 190.4 kB / 17.35 MB, free: 5.602 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1692/0.1692, allocations: 31.17 MB / 322.4 MB, free: 188 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.89 kB / 447.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.0931, allocations: 56.35 MB / 0.4919 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LoveHateDynamics): time 0.007243/0.1004, allocations: 6.533 MB / 0.4983 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.1023, allocations: 1.028 MB / 0.4993 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004949/0.1028, allocations: 19.94 kB / 0.4993 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00045/0.1033, allocations: 150.5 kB / 0.4995 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003148/0.1037, allocations: 79.14 kB / 0.4996 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000785/0.1044, allocations: 387.5 kB / 0.4999 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009114/0.1054, allocations: 0.9488 MB / 0.5009 GB, free: 232 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1989/0.3042, allocations: 0.7144 MB / 0.5016 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/0.3047, allocations: 419.9 kB / 0.502 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003027/0.3051, allocations: 449.8 kB / 0.5024 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.3053, allocations: 157.8 kB / 0.5025 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.3055, allocations: 169.6 kB / 0.5027 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.3056, allocations: 285.4 kB / 0.503 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.3059, allocations: 0.5044 MB / 0.5035 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.307, allocations: 1.335 MB / 0.5048 GB, free: 5.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.307, allocations: 0 / 0.5048 GB, free: 5.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.307, allocations: 2.75 kB / 0.5048 GB, free: 5.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.307, allocations: 0 / 0.5048 GB, free: 5.617 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.00133/0.3083, allocations: 1.106 MB / 0.5058 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3084, allocations: 9.703 kB / 0.5059 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/0.3096, allocations: 209.2 kB / 0.5061 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006261/0.3103, allocations: 0.5133 MB / 0.5066 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.283e-05/0.3104, allocations: 106.1 kB / 0.5067 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.3105, allocations: 116.3 kB / 0.5068 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.312, allocations: 1.014 MB / 0.5078 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.3121, allocations: 1.281 kB / 0.5078 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.172e-05/0.3122, allocations: 39.55 kB / 0.5078 GB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.3122, allocations: 29.56 kB / 0.5078 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.3133, allocations: 0.6183 MB / 0.5084 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.3173, allocations: 3.773 MB / 0.5121 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.3178, allocations: 269 kB / 0.5124 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005609/0.3184, allocations: 353.4 kB / 0.5127 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.3184, allocations: 12.81 kB / 0.5127 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.3184, allocations: 42.97 kB / 0.5128 GB, free: 2.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=60): time 2.645e-06/0.3184, allocations: 0 / 0.5128 GB, free: 2.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=60): time 0.001099/0.3195, allocations: 0.6068 MB / 0.5134 GB, free: 2.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.3196, allocations: 190 kB / 0.5135 GB, free: 2.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004224/0.32, allocations: 452.9 kB / 0.514 GB, free: 2.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.869e-05/0.3201, allocations: 64.2 kB / 0.514 GB, free: 2.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.3203, allocations: 421.5 kB / 0.5144 GB, free: 2.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3204, allocations: 170.8 kB / 0.5146 GB, free: 2.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.3207, allocations: 216 kB / 0.5148 GB, free: 2.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.924e-05/0.3208, allocations: 369.4 kB / 0.5151 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005584/0.3214, allocations: 289.4 kB / 0.5154 GB, free: 1.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006743/0.322, allocations: 0.5949 MB / 0.516 GB, free: 1.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008038/0.3229, allocations: 0.6903 MB / 0.5167 GB, free: 1.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3229, allocations: 2.594 kB / 0.5167 GB, free: 1.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001445/0.3243, allocations: 0.8915 MB / 0.5176 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3243, allocations: 11.66 kB / 0.5176 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3244, allocations: 8.469 kB / 0.5176 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3244, allocations: 13 kB / 0.5176 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.3247, allocations: 114 kB / 0.5177 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.927e-05/0.3248, allocations: 23.17 kB / 0.5177 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.3252, allocations: 115.9 kB / 0.5178 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.578e-05/0.3252, allocations: 49.59 kB / 0.5179 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.0002952/0.3255, allocations: 329.6 kB / 0.5182 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-05/0.3256, allocations: 52.2 kB / 0.5182 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.3257, allocations: 63.78 kB / 0.5183 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.3258, allocations: 10.64 kB / 0.5183 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3258, allocations: 0 / 0.5183 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.3259, allocations: 187 kB / 0.5185 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.678e-05/0.326, allocations: 10.16 kB / 0.5185 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.3262, allocations: 15.23 kB / 0.5185 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.3264, allocations: 105.5 kB / 0.5186 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008518/0.3272, allocations: 0.5248 MB / 0.5191 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001296/0.3285, allocations: 0.8901 MB / 0.52 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000416/0.329, allocations: 263.7 kB / 0.5202 GB, free: 15.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003015/0.3293, allocations: 276.1 kB / 0.5205 GB, free: 15.13 MB / 398.1 MB Notification: Performance of Backend: time 5.11e-07/0.3293, allocations: 4.062 kB / 0.5205 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.3305, allocations: 0.5813 MB / 0.5211 GB, free: 14.91 MB / 398.1 MB Notification: Performance of SimCode: time 0.001892/0.3324, allocations: 1.539 MB / 0.5226 GB, free: 13.81 MB / 398.1 MB Notification: Performance of Templates: time 0.0161/0.3485, allocations: 8.627 MB / 0.531 GB, free: 11.05 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.LoveHateDynamics.pipe 2>&1)