Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003907/0.003908, allocations: 183 kB / 7.461 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6937/0.6937, allocations: 133.5 MB / 141.4 MB, free: 15.83 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.632/1.632, allocations: 221.3 MB / 395 MB, free: 10.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009408/0.0009407, allocations: 98.09 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4288/0.4298, allocations: 88.43 MB / 0.5529 GB, free: 88.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.6221, allocations: 82.3 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.297/4.92, allocations: 1.893 GB / 2.527 GB, free: 44.17 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/4.92, allocations: 91.36 kB / 2.527 GB, free: 44.09 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 4.173/9.093, allocations: 1.052 GB / 3.579 GB, free: 31.13 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/9.093, allocations: 8 kB / 3.579 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004311/9.097, allocations: 0.6609 MB / 3.58 GB, free: 30.46 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003478/9.101, allocations: 1.465 MB / 3.581 GB, free: 28.98 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003439/9.101, allocations: 126.1 kB / 3.581 GB, free: 28.86 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/9.101, allocations: 79.94 kB / 3.581 GB, free: 28.78 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001866/9.103, allocations: 1.02 MB / 3.582 GB, free: 27.75 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/9.105, allocations: 1.223 MB / 3.584 GB, free: 26.46 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/9.105, allocations: 3.938 kB / 3.584 GB, free: 26.45 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/9.105, allocations: 4 kB / 3.584 GB, free: 26.45 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/9.105, allocations: 46.22 kB / 3.584 GB, free: 26.4 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00885/9.114, allocations: 5.958 MB / 3.589 GB, free: 20.24 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008935/9.115, allocations: 0.6103 MB / 3.59 GB, free: 19.62 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005831/9.115, allocations: 484.1 kB / 3.59 GB, free: 19.15 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005957/9.116, allocations: 486.1 kB / 3.591 GB, free: 18.59 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007151/9.117, allocations: 0.5397 MB / 3.591 GB, free: 18.03 MB / 0.698 GB Notification: Performance of pre-optimization done (n=87): time 4.539e-06/9.117, allocations: 0 / 3.591 GB, free: 18.03 MB / 0.698 GB Notification: Performance of matching and sorting (n=95): time 0.008349/9.125, allocations: 3.158 MB / 3.595 GB, free: 14.82 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/9.125, allocations: 200.7 kB / 3.595 GB, free: 14.57 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/9.127, allocations: 0.9135 MB / 3.596 GB, free: 13.65 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001337/9.127, allocations: 29.7 kB / 3.596 GB, free: 13.62 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004032/9.128, allocations: 481.7 kB / 3.596 GB, free: 13.14 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002785/9.128, allocations: 319.2 kB / 3.596 GB, free: 12.82 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/9.128, allocations: 4 kB / 3.596 GB, free: 12.82 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.844e-05/9.128, allocations: 344.9 kB / 3.597 GB, free: 12.48 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/9.129, allocations: 381.9 kB / 3.597 GB, free: 12.11 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006171/9.129, allocations: 0.6068 MB / 3.598 GB, free: 11.41 MB / 0.698 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004182/9.133, allocations: 1.422 MB / 3.599 GB, free: 9.969 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/9.133, allocations: 0 / 3.599 GB, free: 9.969 MB / 0.698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00409/9.137, allocations: 1.623 MB / 3.601 GB, free: 8.34 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002998/9.138, allocations: 1.247 MB / 3.602 GB, free: 7.02 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/9.138, allocations: 4 kB / 3.602 GB, free: 7.016 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/9.139, allocations: 415.1 kB / 3.602 GB, free: 6.598 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007781/9.14, allocations: 179.7 kB / 3.602 GB, free: 6.422 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006638/9.146, allocations: 6.344 MB / 3.609 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/9.148, allocations: 123.8 kB / 3.609 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/9.149, allocations: 40.05 kB / 3.609 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/9.149, allocations: 6.5 kB / 3.609 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004594/9.153, allocations: 1.415 MB / 3.61 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/9.153, allocations: 4 kB / 3.61 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/9.155, allocations: 419.9 kB / 3.611 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008925/9.155, allocations: 175.8 kB / 3.611 GB, free: 13.53 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009467/9.165, allocations: 7.19 MB / 3.618 GB, free: 5.871 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/9.167, allocations: 127.8 kB / 3.618 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003196/9.168, allocations: 44.05 kB / 3.618 GB, free: 5.703 MB / 0.7136 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007395/9.168, allocations: 160 kB / 3.618 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000661/9.169, allocations: 162.1 kB / 3.618 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004526/9.173, allocations: 1.412 MB / 3.62 GB, free: 3.941 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/9.174, allocations: 11.91 kB / 3.62 GB, free: 3.93 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/9.174, allocations: 4 kB / 3.62 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003327/9.177, allocations: 1.294 MB / 3.621 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4749/9.652, allocations: 3.126 MB / 3.624 GB, free: 116.9 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/9.652, allocations: 3.562 kB / 3.624 GB, free: 116.9 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/9.653, allocations: 196.5 kB / 3.624 GB, free: 116.9 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/9.653, allocations: 191.4 kB / 3.624 GB, free: 116.8 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/9.653, allocations: 21.53 kB / 3.624 GB, free: 116.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002534/9.656, allocations: 2.408 MB / 3.627 GB, free: 115.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/9.656, allocations: 3.844 kB / 3.627 GB, free: 115.1 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004297/9.66, allocations: 2.37 MB / 3.629 GB, free: 114.6 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005419/9.666, allocations: 3.494 MB / 3.632 GB, free: 113.6 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/9.667, allocations: 363.1 kB / 3.633 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/9.667, allocations: 17.14 kB / 3.633 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/9.669, allocations: 130.2 kB / 3.633 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/9.669, allocations: 61.3 kB / 3.633 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-05/9.669, allocations: 43.19 kB / 3.633 GB, free: 113.5 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.001057/9.67, allocations: 0.7008 MB / 3.634 GB, free: 113.4 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00672/9.677, allocations: 1.555 MB / 3.635 GB, free: 113.4 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0038/9.68, allocations: 2.635 MB / 3.638 GB, free: 112.6 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003467/9.684, allocations: 2.394 MB / 3.64 GB, free: 111.8 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/9.684, allocations: 3.125 kB / 3.64 GB, free: 111.8 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0009033/9.685, allocations: 0.6621 MB / 3.641 GB, free: 111.7 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003778/9.689, allocations: 0.6862 MB / 3.641 GB, free: 111.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00675/9.695, allocations: 2.638 MB / 3.644 GB, free: 111 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/9.697, allocations: 1.5 MB / 3.645 GB, free: 110.3 MB / 0.7136 GB Notification: Performance of SimCode: time 8.12e-07/9.697, allocations: 3.781 kB / 3.646 GB, free: 110.3 MB / 0.7136 GB (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)