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.001433/0.001433, allocations: 116.4 kB / 16.42 MB, free: 6.496 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.001645/0.001645, allocations: 186.6 kB / 17.35 MB, free: 5.762 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.336/1.336, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1697/0.1697, allocations: 31.17 MB / 322.4 MB, free: 188 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 447.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.0882, allocations: 56.36 MB / 0.4919 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LoveHateDynamics): time 0.007211/0.09543, allocations: 6.532 MB / 0.4983 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.09737, allocations: 1.028 MB / 0.4993 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005559/0.09795, allocations: 15.94 kB / 0.4993 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005109/0.09847, allocations: 154.5 kB / 0.4995 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003721/0.09887, allocations: 79.14 kB / 0.4996 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008142/0.09969, allocations: 395.5 kB / 0.4999 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009219/0.1006, allocations: 0.9449 MB / 0.5009 GB, free: 232 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.182/0.2826, allocations: 0.7161 MB / 0.5016 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.2831, allocations: 427.2 kB / 0.502 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.2834, allocations: 447 kB / 0.5024 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.2836, allocations: 157.9 kB / 0.5025 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.2838, allocations: 164.5 kB / 0.5027 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.2839, allocations: 288.4 kB / 0.503 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.2842, allocations: 0.504 MB / 0.5035 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009779/0.2852, allocations: 1.329 MB / 0.5048 GB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2852, allocations: 1.062 kB / 0.5048 GB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2852, allocations: 0.8125 kB / 0.5048 GB, free: 5.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.2852, allocations: 0 / 0.5048 GB, free: 5.68 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.001358/0.2866, allocations: 1.081 MB / 0.5058 GB, free: 5.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2867, allocations: 11.72 kB / 0.5058 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001406/0.2881, allocations: 205.1 kB / 0.506 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006559/0.2887, allocations: 0.5063 MB / 0.5065 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-05/0.2888, allocations: 107.4 kB / 0.5066 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.289, allocations: 116.5 kB / 0.5067 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.2905, allocations: 1.018 MB / 0.5077 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.2906, allocations: 5.062 kB / 0.5077 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/0.2907, allocations: 39.5 kB / 0.5078 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.2907, allocations: 25.47 kB / 0.5078 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.2918, allocations: 0.619 MB / 0.5084 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003801/0.2956, allocations: 3.757 MB / 0.5121 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.2961, allocations: 272.6 kB / 0.5123 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005617/0.2967, allocations: 354.9 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.2967, allocations: 11.67 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.2967, allocations: 40.39 kB / 0.5127 GB, free: 3.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=60): time 1.963e-06/0.2967, allocations: 3.469 kB / 0.5127 GB, free: 3.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=60): time 0.001106/0.2978, allocations: 0.6083 MB / 0.5133 GB, free: 2.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.2979, allocations: 188.3 kB / 0.5135 GB, free: 2.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.2983, allocations: 448.9 kB / 0.5139 GB, free: 2.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.766e-05/0.2984, allocations: 59.42 kB / 0.514 GB, free: 2.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.2986, allocations: 411.3 kB / 0.5144 GB, free: 2.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.652e-05/0.2987, allocations: 164 kB / 0.5145 GB, free: 2.266 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/0.2989, allocations: 217.3 kB / 0.5147 GB, free: 2.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.299, allocations: 371 kB / 0.5151 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005703/0.2996, allocations: 293.8 kB / 0.5154 GB, free: 1.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006728/0.3003, allocations: 0.5932 MB / 0.516 GB, free: 1.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008068/0.3011, allocations: 0.6852 MB / 0.5166 GB, free: 1.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3011, allocations: 6 kB / 0.5166 GB, free: 1.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001413/0.3025, allocations: 0.8818 MB / 0.5175 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3026, allocations: 13.09 kB / 0.5175 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.3026, allocations: 7.594 kB / 0.5175 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.3026, allocations: 15.47 kB / 0.5175 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.303, allocations: 115.9 kB / 0.5176 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.222e-05/0.303, allocations: 19.38 kB / 0.5176 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.3034, allocations: 112.8 kB / 0.5178 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.925e-05/0.3035, allocations: 44.52 kB / 0.5178 GB, free: 0.8008 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.000298/0.3038, allocations: 333.1 kB / 0.5181 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.3038, allocations: 51.25 kB / 0.5182 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.304, allocations: 60.95 kB / 0.5182 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.304, allocations: 7.656 kB / 0.5182 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.304, allocations: 4 kB / 0.5182 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.3042, allocations: 184.4 kB / 0.5184 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.382e-05/0.3042, allocations: 11.62 kB / 0.5184 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.3045, allocations: 19.44 kB / 0.5184 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.3046, allocations: 95.83 kB / 0.5185 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008455/0.3055, allocations: 0.5228 MB / 0.519 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001317/0.3068, allocations: 0.8923 MB / 0.5199 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004166/0.3073, allocations: 261.5 kB / 0.5202 GB, free: 15.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000299/0.3076, allocations: 272.9 kB / 0.5204 GB, free: 15.23 MB / 398.1 MB Notification: Performance of Backend: time 3.01e-07/0.3076, allocations: 0 / 0.5204 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.3088, allocations: 0.5999 MB / 0.521 GB, free: 15 MB / 398.1 MB Notification: Performance of SimCode: time 0.001842/0.3107, allocations: 1.51 MB / 0.5225 GB, free: 13.93 MB / 398.1 MB Notification: Performance of Templates: time 0.01463/0.3253, allocations: 8.625 MB / 0.5309 GB, free: 11.19 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)