Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001505, allocations: 182.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 96.61 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.0003858, allocations: 8 kB / 327 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3292, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater): time 1.299/1.629, allocations: 357.6 MB / 0.7151 GB, free: 7.871 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.1483/1.777, allocations: 82.12 MB / 0.7953 GB, free: 11.53 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01456/1.792, allocations: 317.4 kB / 0.7956 GB, free: 11.22 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01928/1.811, allocations: 4.066 MB / 0.7996 GB, free: 7.973 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07227/1.883, allocations: 16.89 MB / 0.8161 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.06094/1.944, allocations: 13.76 MB / 0.8295 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.04078/1.985, allocations: 13.8 MB / 0.843 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01864/2.004, allocations: 5.873 MB / 0.8487 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0229/2.027, allocations: 7.034 MB / 0.8556 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6697/2.697, allocations: 56.31 MB / 0.9106 GB, free: 42.58 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.004985/2.702, allocations: 0.5075 MB / 0.9111 GB, free: 42.58 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05522/2.757, allocations: 16.73 MB / 0.9274 GB, free: 42.55 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.006671/2.764, allocations: 2.595 MB / 0.9299 GB, free: 42.55 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.005943/2.77, allocations: 1.97 MB / 0.9319 GB, free: 42.52 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.04357/2.813, allocations: 17.78 MB / 0.9492 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/2.813, allocations: 0 / 0.9492 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of FrontEnd: time 4.158e-06/2.813, allocations: 0 / 0.9492 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005893/2.814, allocations: 0 / 0.9492 GB, free: 37.13 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2241 * Number of variables: 2241 Notification: Performance of Generate backend data structure: time 0.05178/2.866, allocations: 12.58 MB / 0.9615 GB, free: 25.85 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/2.866, allocations: 12.03 kB / 0.9615 GB, free: 25.84 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004889/2.871, allocations: 1.154 MB / 0.9627 GB, free: 25.23 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03204/2.903, allocations: 3.322 MB / 0.9659 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01843/2.921, allocations: 5.323 MB / 0.9711 GB, free: 18.42 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00189/2.923, allocations: 1.353 MB / 0.9724 GB, free: 17.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004128/2.927, allocations: 0.8616 MB / 0.9733 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05462/2.982, allocations: 14.08 MB / 0.987 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005749/2.983, allocations: 35.7 kB / 0.987 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003634/2.986, allocations: 373.1 kB / 0.9874 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001044/2.987, allocations: 0.5514 MB / 0.9879 GB, free: 5.309 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05481/3.042, allocations: 13.08 MB / 1.001 GB, free: 12.11 MB / 0.573 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1338/3.176, allocations: 60.81 MB / 1.06 GB, free: 5.809 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04395/3.22, allocations: 10.44 MB / 1.07 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2378/3.458, allocations: 55.78 MB / 1.125 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.03299/3.491, allocations: 7.095 MB / 1.132 GB, free: 13.79 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007225/3.498, allocations: 0.7219 MB / 1.132 GB, free: 13.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=796): time 3.926e-05/3.498, allocations: 3.75 kB / 1.132 GB, free: 13.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=870): time 0.8798/4.378, allocations: 48.29 MB / 1.18 GB, free: 383.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/4.378, allocations: 318.1 kB / 1.18 GB, free: 383.2 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/4.39, allocations: 5.031 MB / 1.185 GB, free: 381.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.002297/4.392, allocations: 253.9 kB / 1.185 GB, free: 381.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.003592/4.396, allocations: 3.271 MB / 1.188 GB, free: 378.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.004584/4.4, allocations: 2.844 MB / 1.191 GB, free: 376.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002213/4.402, allocations: 206.6 kB / 1.191 GB, free: 376.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0008364/4.403, allocations: 0.6988 MB / 1.192 GB, free: 375.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0163/4.42, allocations: 4.504 MB / 1.196 GB, free: 374.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01837/4.438, allocations: 6.616 MB / 1.203 GB, free: 370.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01791/4.456, allocations: 5.096 MB / 1.208 GB, free: 368.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.509e-05/4.456, allocations: 20.64 kB / 1.208 GB, free: 368.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=1295) (initialization): time 0.05581/4.512, allocations: 13.77 MB / 1.221 GB, free: 359.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.004793/4.517, allocations: 22.93 MB / 1.244 GB, free: 334.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002181/4.517, allocations: 56 kB / 1.244 GB, free: 334.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0192/4.536, allocations: 3.28 MB / 1.247 GB, free: 332.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01693/4.553, allocations: 2.124 MB / 1.249 GB, free: 330.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02905/4.582, allocations: 25.28 MB / 1.274 GB, free: 304.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01532/4.598, allocations: 1.006 MB / 1.275 GB, free: 303.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002741/4.6, allocations: 491.8 kB / 1.275 GB, free: 302.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/4.6, allocations: 12.47 kB / 1.275 GB, free: 302.6 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05572/4.656, allocations: 13.31 MB / 1.288 GB, free: 289.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/4.656, allocations: 59.84 kB / 1.288 GB, free: 289.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01277/4.669, allocations: 2.456 MB / 1.29 GB, free: 286.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02397/4.693, allocations: 2.18 MB / 1.293 GB, free: 284.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06684/4.76, allocations: 34.08 MB / 1.326 GB, free: 248.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0191/4.779, allocations: 0.9935 MB / 1.327 GB, free: 247.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003988/4.783, allocations: 483.8 kB / 1.327 GB, free: 246.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 263 * Number of states: 0 () * Number of discrete variables: 288 ($PRE.controller.Transition1.enableFire,$PRE.controller.Transition2.enableFire,$PRE.controller.Transition3.enableFire,$PRE.controller.Transition4.enableFire,$PRE.controller.Transition5.enableFire,$PRE.controller.Transition6.enableFire,$PRE.controller.Transition7.enableFire,$PRE.controller.Transition8.enableFire,$PRE.controller.Transition9.enableFire,$PRE.controller.Transition10.enableFire,$PRE.controller.Transition11.enableFire,$PRE.controller.Transition12.enableFire,$PRE.controller.Transition13.enableFire,$PRE.controller.TransitionWithSignal1.enableFire,controller.stateGraphRoot.resume,controller.stateGraphRoot.suspend,controller.Transition7.condition,controller.Transition3.condition,controller.Transition1.condition,controller.actuators.V21,controller.actuators.V19,controller.actuators.V10,controller.actuators.V4,controller.actuators.V2,pipeB7Pump.flowModel.states[2].phase,pipeB7Pump.flowModel.states[1].phase,pipeB6Pump.flowModel.states[2].phase,pipeB6Pump.flowModel.states[1].phase,pipeB1B1.flowModel.states[2].phase,pipeB1B1.flowModel.states[1].phase,pipeB2B3.flowModel.states[2].phase,pipeB2B3.flowModel.states[1].phase,pipeB1B3.flowModel.states[2].phase,pipeB1B3.flowModel.states[1].phase,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.B5.InnerTankTop[1].m_flow_negative,B5.InnerTankTop[1].m_flow_negative,$PRE.B5.InnerTankSide[1].m_flow_negative,B5.InnerTankSide[1].m_flow_negative,$PRE.B5.InnerTankBottom[1].m_flow_negative,B5.InnerTankBottom[1].m_flow_negative,B5.heatTransfer.states[1].phase,controller.InitialStep1.active,$PRE.controller.InitialStep1.localActive,controller.InitialStep1.localActive,$PRE.controller.InitialStep1.newActive,controller.InitialStep1.newActive,$PRE.controller.InitialStep1.oldActive,controller.InitialStep1.oldActive,controller.Transition1.enableFire,controller.Transition1.fire,$PRE.controller.Transition1.t_start,controller.Transition1.t_start,controller.Step1.active,$PRE.controller.Step1.localActive,controller.Step1.localActive,$PRE.controller.Step1.newActive,controller.Step1.newActive,$PRE.controller.Step1.oldActive,controller.Step1.oldActive,controller.Transition2.condition,controller.Transition2.enableFire,controller.Step2.active,$PRE.controller.Step2.localActive,controller.Step2.localActive,$PRE.controller.Step2.newActive,controller.Step2.newActive,$PRE.controller.Step2.oldActive,controller.Step2.oldActive,controller.Transition3.enableFire,controller.Transition3.fire,$PRE.controller.Transition3.t_start,controller.Transition3.t_start,controller.Step3.active,$PRE.controller.Step3.localActive,controller.Step3.localActive,$PRE.controller.Step3.newActive,controller.Step3.newActive,$PRE.controller.Step3.oldActive,controller.Step3.oldActive,controller.Transition4.condition,controller.Transition4.enableFire,controller.Step4.active,$PRE.controller.Step4.localActive,controller.Step4.localActive,$PRE.controller.Step4.newActive,controller.Step4.newActive,$PRE.controller.Step4.oldActive,controller.Step4.oldActive,controller.Transition5.enableFire,controller.Step5.active,$PRE.controller.Step5.localActive,controller.Step5.localActive,$PRE.controller.Step5.newActive,controller.Step5.newActive,$PRE.controller.Step5.oldActive,controller.Step5.oldActive,controller.Transition6.condition,controller.Transition6.enableFire,controller.Step6.active,$PRE.controller.Step6.localActive,controller.Step6.localActive,$PRE.controller.Step6.newActive,controller.Step6.newActive,$PRE.controller.Step6.oldActive,controller.Step6.oldActive,controller.Transition7.enableFire,controller.Transition7.fire,controller.Transition7.outPort.occupied,$PRE.controller.Transition7.t_start,controller.Transition7.t_start,controller.Step7.active,$PRE.controller.Step7.localActive,controller.Step7.localActive,$PRE.controller.Step7.newActive,controller.Step7.newActive,$PRE.controller.Step7.oldActive,controller.Step7.oldActive,controller.Step8.active,$PRE.controller.Step8.localActive,controller.Step8.localActive,$PRE.controller.Step8.newActive,controller.Step8.newActive,$PRE.controller.Step8.oldActive,controller.Step8.oldActive,controller.Step9.active,$PRE.controller.Step9.localActive,controller.Step9.localActive,$PRE.controller.Step9.newActive,controller.Step9.newActive,$PRE.controller.Step9.oldActive,controller.Step9.oldActive,controller.Step10.active,$PRE.controller.Step10.localActive,controller.Step10.localActive,$PRE.controller.Step10.newActive,controller.Step10.newActive,$PRE.controller.Step10.oldActive,controller.Step10.oldActive,controller.Step11.active,$PRE.controller.Step11.localActive,controller.Step11.localActive,$PRE.controller.Step11.newActive,controller.Step11.newActive,$PRE.controller.Step11.oldActive,controller.Step11.oldActive,controller.Step12.active,$PRE.controller.Step12.localActive,controller.Step12.localActive,$PRE.controller.Step12.newActive,controller.Step12.newActive,$PRE.controller.Step12.oldActive,controller.Step12.oldActive,controller.Step13.active,$PRE.controller.Step13.localActive,controller.Step13.localActive,$PRE.controller.Step13.newActive,controller.Step13.newActive,$PRE.controller.Step13.oldActive,controller.Step13.oldActive,controller.Step14.active,$PRE.controller.Step14.localActive,controller.Step14.localActive,$PRE.controller.Step14.newActive,controller.Step14.newActive,$PRE.controller.Step14.oldActive,controller.Step14.oldActive,controller.Transition8.enableFire,controller.Transition9.condition,controller.Transition9.enableFire,controller.Transition10.condition,controller.Transition10.enableFire,controller.Transition11.condition,controller.Transition11.enableFire,controller.Transition12.condition,controller.Transition12.enableFire,controller.Transition13.condition,controller.Transition13.enableFire,controller.T5_idle,controller.T7_idle,controller.TransitionWithSignal1.condition,controller.TransitionWithSignal1.enableFire,controller.TransitionWithSignal1.inPort.available,controller.stateGraphRoot.activeSteps,volume5.medium.phase,P1.heatTransfer.states[1].phase,P2.heatTransfer.states[1].phase,B1.heatTransfer.states[1].phase,$PRE.B1.ports_m_flow_out[1],B1.ports_m_flow_out[1],$PRE.B1.aboveLevel[1],B1.aboveLevel[1],P1_on.endValue,P1_on.rate,P1_on.T,P2_on.endValue,P2_on.rate,P2_on.T,B2.heatTransfer.states[1].phase,$PRE.B2.ports_m_flow_out[1],B2.ports_m_flow_out[1],$PRE.B2.aboveLevel[1],B2.aboveLevel[1],B3.heatTransfer.states[1].phase,$PRE.B3.ports_m_flow_out[1],B3.ports_m_flow_out[1],$PRE.B3.ports_m_flow_out[2],B3.ports_m_flow_out[2],$PRE.B3.aboveLevel[1],B3.aboveLevel[1],$PRE.B3.aboveLevel[2],B3.aboveLevel[2],B4.heatTransfer.states[1].phase,$PRE.B4.ports_m_flow_out[1],B4.ports_m_flow_out[1],$PRE.B4.aboveLevel[1],B4.aboveLevel[1],B7.heatTransfer.states[1].phase,$PRE.B7.ports_m_flow_out[1],B7.ports_m_flow_out[1],$PRE.B7.aboveLevel[1],B7.aboveLevel[1],pipeB1B2.statesFM[1].phase,pipeB1B2.statesFM[2].phase,pipePump1B1.statesFM[1].phase,pipePump1B1.statesFM[2].phase,pipePump2B2.statesFM[1].phase,pipePump2B2.statesFM[2].phase,B6.heatTransfer.states[1].phase,$PRE.B6.ports_m_flow_out[1],B6.ports_m_flow_out[1],$PRE.B6.aboveLevel[1],B6.aboveLevel[1],volume4.medium.phase,pipePump2B2.state_b.phase,pipePump2B2.state_a.phase,pipePump1B1.state_b.phase,pipePump1B1.state_a.phase,pipeB1B2.state_b.phase,pipeB1B2.state_a.phase,P2.monitoring.state_in.phase,P1.monitoring.state_in.phase,V18.state_b.phase,V18.state_a.phase,V21.state_b.phase,V21.state_a.phase,V10.state_b.phase,V10.state_a.phase,V19.state_b.phase,V19.state_a.phase,V20.state_b.phase,V20.state_a.phase,V25.state_b.phase,V25.state_a.phase,V24.state_b.phase,V24.state_a.phase,V5.state_b.phase,V5.state_a.phase,V22.state_b.phase,V22.state_a.phase,V1.state_b.phase,V1.state_a.phase,V23.state_b.phase,V23.state_a.phase,V6.state_b.phase,V6.state_a.phase,V3.state_b.phase,V3.state_a.phase,V4.state_b.phase,V4.state_a.phase,V2.state_b.phase,V2.state_a.phase,V9.state_b.phase,V9.state_a.phase,V8.state_b.phase,V8.state_a.phase,V11.state_b.phase,V11.state_a.phase,V15.state_b.phase,V15.state_a.phase,V12.state_b.phase,V12.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1167): * Single equations (assignments): 1137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 30 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 28 {2 2,1 5,1 5,2 2,1 5,1 2,1 1,1 5,1 5,2 7,1 5,2 7,1 2,1 1,1 1,1 1,1 1,2 5,1 1,2 10,1 1,1 1,1 1,1 1,1 6,1 1,2 14,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.01324/4.797, allocations: 2.177 MB / 1.329 GB, free: 244.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005083/4.802, allocations: 0.7449 MB / 1.33 GB, free: 243.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1004/4.902, allocations: 35.6 MB / 1.365 GB, free: 208 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004713/4.903, allocations: 407.4 kB / 1.365 GB, free: 207.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.444e-05/4.903, allocations: 4 kB / 1.365 GB, free: 207.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06832/4.971, allocations: 30.26 MB / 1.395 GB, free: 177.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1104/5.082, allocations: 49.9 MB / 1.444 GB, free: 127.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002118/5.082, allocations: 7.984 kB / 1.444 GB, free: 127.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01362/5.095, allocations: 1.615 MB / 1.445 GB, free: 125.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02437/5.12, allocations: 6.124 MB / 1.451 GB, free: 119.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002241/5.122, allocations: 263.8 kB / 1.451 GB, free: 119.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03003/5.152, allocations: 27.3 MB / 1.478 GB, free: 90.51 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/5.152, allocations: 8.219 kB / 1.478 GB, free: 90.5 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08062/5.233, allocations: 33.97 MB / 1.511 GB, free: 56.15 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007944/5.241, allocations: 2.476 MB / 1.514 GB, free: 53.64 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003746/5.245, allocations: 235.9 kB / 1.514 GB, free: 53.41 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01257/5.257, allocations: 0.7917 MB / 1.515 GB, free: 52.61 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003753/5.261, allocations: 0.8416 MB / 1.516 GB, free: 51.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002386/5.263, allocations: 323.8 kB / 1.516 GB, free: 51.45 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.008419/5.272, allocations: 3.21 MB / 1.519 GB, free: 48.25 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.61e-07/5.272, allocations: 4 kB / 1.519 GB, free: 48.25 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0358/5.308, allocations: 7.085 MB / 1.526 GB, free: 41.57 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 34 (B5.medium.h,B5.level,volume5.medium.p,volume5.medium.h,P1.medium.p,P1.medium.h,P2.medium.p,P2.medium.h,B1.level,B1.medium.h,B2.level,B2.medium.h,B3.level,B3.medium.h,B4.level,B4.medium.h,B7.level,B7.medium.h,pipeB1B2.mediums[1].p,pipeB1B2.mediums[1].h,pipeB1B2.mediums[2].p,pipeB1B2.mediums[2].h,pipePump1B1.mediums[1].p,pipePump1B1.mediums[1].h,pipePump1B1.mediums[2].p,pipePump1B1.mediums[2].h,pipePump2B2.mediums[1].p,pipePump2B2.mediums[1].h,pipePump2B2.mediums[2].p,pipePump2B2.mediums[2].h,B6.level,B6.medium.h,volume4.medium.p,volume4.medium.h) * Number of discrete variables: 353 (controller.InitialStep1.localActive,controller.Transition1.enableFire,controller.Step1.localActive,controller.Step2.localActive,controller.Transition3.enableFire,controller.Step3.localActive,controller.Step4.localActive,controller.Step5.localActive,controller.Step6.localActive,controller.Transition7.enableFire,controller.Step7.localActive,controller.Step8.localActive,controller.Step9.localActive,controller.Step10.active,controller.Step10.localActive,controller.Step11.localActive,controller.Step12.localActive,controller.Step13.active,controller.Step13.localActive,controller.Step14.localActive,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15,$cse16,$cse17,$cse18,$cse19,$cse20,$cse21,$cse22,$cse23,$cse24,$cse25,$cse26,$cse27,$cse28,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse57.phase,$cse57.region,$cse59.phase,$cse59.region,$cse60.phase,$cse60.region,$cse61.region3boundary,$cse62.region3boundary,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,$cse65.region3boundary,$cse66.region3boundary,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,$cse70.region3boundary,$cse71.region3boundary,$cse72.phase,$cse72.region,$cse73.phase,$cse73.region,$cse77.phase,$cse77.region,$cse78.phase,$cse78.region,$cse79.phase,$cse79.region,$cse80.phase,$cse80.region,$cse81.phase,$cse81.region,$cse82.region3boundary,$cse83.region3boundary,$cse84.phase,$cse84.region,$cse85.region3boundary,$cse86.region3boundary,$cse87.phase,$cse87.region,$cse89.phase,$cse89.region,$cse90.phase,$cse90.region,$cse91.phase,$cse91.region,$cse92.phase,$cse92.region,$cse94.phase,$cse94.region,$cse95.phase,$cse95.region,$cse97.phase,$cse97.region,$cse98.phase,$cse98.region,$cse100.phase,$cse100.region,$cse101.phase,$cse101.region,$cse103.phase,$cse103.region,$cse104.phase,$cse104.region,$cse106.region3boundary,$cse107.region3boundary,$cse108.phase,$cse108.region,$cse109.region3boundary,$cse110.region3boundary,$cse111.phase,$cse111.region,$cse113.phase,$cse113.region,$cse114.phase,$cse114.region,$cse115.region3boundary,$cse116.region3boundary,$cse117.phase,$cse117.region,$cse118.region3boundary,$cse119.region3boundary,$cse120.phase,$cse120.region,$cse122.phase,$cse122.region,$cse123.phase,$cse123.region,$cse124.phase,$cse124.region,$cse128.region3boundary,$cse129.region3boundary,$cse130.phase,$cse130.region,$cse132.phase,$cse132.region,$cse133.phase,$cse133.region,$cse137.phase,$cse137.region,$cse139.phase,$cse139.region,$cse141.phase,$cse141.region,$cse143.phase,$cse143.region,$cse147.phase,$cse147.region,$cse149.phase,$cse149.region,$cse151.phase,$cse151.region,$cse153.phase,$cse153.region,$cse155.phase,$cse155.region,$cse157.phase,$cse157.region,$cse159.phase,$cse159.region,$cse160.phase,$cse160.region,$cse162.phase,$cse162.region,$cse163.phase,$cse163.region,$cse165.phase,$cse165.region,$cse167.phase,$cse167.region,$cse168.phase,$cse168.region,$cse170.phase,$cse170.region,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,B5.InnerTankTop[1].m_flow_negative,B5.InnerTankSide[1].m_flow_negative,B5.InnerTankBottom[1].m_flow_negative,B5.heatTransfer.states[1].phase,controller.InitialStep1.active,controller.InitialStep1.newActive,controller.InitialStep1.oldActive,controller.Transition1.fire,controller.Transition1.t_start,controller.Step1.active,controller.Step1.newActive,controller.Step1.oldActive,controller.Transition2.condition,controller.Transition2.enableFire,controller.Step2.active,controller.Step2.newActive,controller.Step2.oldActive,controller.Transition3.fire,controller.Transition3.t_start,controller.Step3.active,controller.Step3.newActive,controller.Step3.oldActive,controller.Transition4.condition,controller.Transition4.enableFire,controller.Step4.active,controller.Step4.newActive,controller.Step4.oldActive,controller.Transition5.enableFire,controller.Step5.active,controller.Step5.newActive,controller.Step5.oldActive,controller.Transition6.condition,controller.Transition6.enableFire,controller.Step6.active,controller.Step6.newActive,controller.Step6.oldActive,controller.Transition7.fire,controller.Transition7.outPort.occupied,controller.Transition7.t_start,controller.Step7.active,controller.Step7.newActive,controller.Step7.oldActive,controller.Step8.active,controller.Step8.newActive,controller.Step8.oldActive,controller.Step9.active,controller.Step9.newActive,controller.Step9.oldActive,controller.Step10.newActive,controller.Step10.oldActive,controller.Step11.active,controller.Step11.newActive,controller.Step11.oldActive,controller.Step12.active,controller.Step12.newActive,controller.Step12.oldActive,controller.Step13.newActive,controller.Step13.oldActive,controller.Step14.active,controller.Step14.newActive,controller.Step14.oldActive,controller.Transition8.enableFire,controller.Transition9.condition,controller.Transition9.enableFire,controller.Transition10.condition,controller.Transition10.enableFire,controller.Transition11.condition,controller.Transition11.enableFire,controller.Transition12.condition,controller.Transition12.enableFire,controller.Transition13.condition,controller.Transition13.enableFire,controller.T5_idle,controller.T7_idle,controller.TransitionWithSignal1.condition,controller.TransitionWithSignal1.enableFire,controller.TransitionWithSignal1.inPort.available,controller.stateGraphRoot.activeSteps,volume5.medium.phase,P1.heatTransfer.states[1].phase,P2.heatTransfer.states[1].phase,B1.heatTransfer.states[1].phase,B1.ports_m_flow_out[1],B1.aboveLevel[1],P1_on.endValue,P1_on.rate,P1_on.T,P2_on.endValue,P2_on.rate,P2_on.T,B2.heatTransfer.states[1].phase,B2.ports_m_flow_out[1],B2.aboveLevel[1],B3.heatTransfer.states[1].phase,B3.ports_m_flow_out[1],B3.ports_m_flow_out[2],B3.aboveLevel[1],B3.aboveLevel[2],B4.heatTransfer.states[1].phase,B4.ports_m_flow_out[1],B4.aboveLevel[1],B7.heatTransfer.states[1].phase,B7.ports_m_flow_out[1],B7.aboveLevel[1],pipeB1B2.statesFM[1].phase,pipeB1B2.statesFM[2].phase,pipePump1B1.statesFM[1].phase,pipePump1B1.statesFM[2].phase,pipePump2B2.statesFM[1].phase,pipePump2B2.statesFM[2].phase,B6.heatTransfer.states[1].phase,B6.ports_m_flow_out[1],B6.aboveLevel[1],volume4.medium.phase) * Number of discrete states: 34 (B6.aboveLevel[1],B7.aboveLevel[1],B4.aboveLevel[1],B3.aboveLevel[2],B3.aboveLevel[1],B2.aboveLevel[1],B1.aboveLevel[1],B3.ports_m_flow_out[2],controller.Step14.newActive,controller.Step13.newActive,P2_on.y,controller.Step12.newActive,controller.Step11.newActive,controller.Step10.newActive,B7.ports_m_flow_out[1],P1_on.y,controller.Step9.newActive,controller.Step8.newActive,controller.Step7.newActive,controller.Step6.newActive,controller.Step5.newActive,controller.Step4.newActive,controller.Step3.newActive,B3.ports_m_flow_out[1],controller.Step2.newActive,B2.ports_m_flow_out[1],controller.Step1.newActive,B1.ports_m_flow_out[1],controller.InitialStep1.newActive,B5.InnerTankTop[1].m_flow_negative,B4.ports_m_flow_out[1],B5.InnerTankSide[1].m_flow_negative,B5.InnerTankBottom[1].m_flow_negative,B6.ports_m_flow_out[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (895): * Single equations (assignments): 741 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 101 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 29 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 27 {1 1,1 1,1 1,2 6,1 1,1 7,1 1,1 1,1 1,1 1,1 1,1 1,2 2,1 5,1 5,2 4,2 4,2 4,2 4,1 2,2 2,2 19,2 9,2 9,2 13,2 13,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.1039/5.412, allocations: 37 MB / 1.562 GB, free: 4.934 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.4117/5.823, allocations: 23.82 MB / 1.585 GB, free: 364.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/5.824, allocations: 2.844 kB / 1.585 GB, free: 364.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.03088/5.854, allocations: 11.57 MB / 1.597 GB, free: 359.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03237/5.887, allocations: 3.64 MB / 1.6 GB, free: 359 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1105/5.997, allocations: 85.28 MB / 1.683 GB, free: 292.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01285/6.01, allocations: 6.698 MB / 1.69 GB, free: 291.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01435/6.025, allocations: 5.878 MB / 1.696 GB, free: 286.6 MB / 0.698 GB Notification: Performance of SimCode: time 1.523e-06/6.025, allocations: 2.844 kB / 1.696 GB, free: 286.6 MB / 0.698 GB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterFunctions.cpp:1353:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp556, tmp557); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/ArrayOperations.h:91:6: note: candidate function not viable: no known conversion from 'double' to 'const BaseArray' for 1st argument void add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterFunctions.cpp:1621:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp584, tmp585); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/ArrayOperations.h:91:6: note: candidate function not viable: no known conversion from 'double' to 'const BaseArray' for 1st argument void add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_BatchPlant_StandardWaterCalcHelperMain.o] Error 1