Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp") [: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/Buildings 10.0.0-master/package.mo): time 2.044/2.044, allocations: 390.4 MB / 397.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 178.2 kB / 490.8 MB, free: 1.977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009041/0.0009042, allocations: 87.05 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.915e-06/7.945e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2482, allocations: 143 MB / 1.212 GB, free: 40.17 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.629/3.877, allocations: 1.941 GB / 3.153 GB, free: 393.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/3.878, allocations: 88.55 kB / 3.153 GB, free: 393.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.556/5.433, allocations: 487.8 MB / 3.629 GB, free: 288.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001248/5.433, allocations: 46.84 kB / 3.629 GB, free: 288.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.003612/5.437, allocations: 1.829 MB / 3.631 GB, free: 288.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/5.437, allocations: 7.312 kB / 3.631 GB, free: 288.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003264/5.44, allocations: 479.1 kB / 3.631 GB, free: 288 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002107/5.443, allocations: 0.9976 MB / 3.632 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.874e-05/5.443, allocations: 53.2 kB / 3.632 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/5.443, allocations: 94.27 kB / 3.632 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002621/5.445, allocations: 1.536 MB / 3.634 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002445/5.448, allocations: 1.439 MB / 3.635 GB, free: 287.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/5.448, allocations: 6.25 kB / 3.635 GB, free: 287.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/5.448, allocations: 4.359 kB / 3.635 GB, free: 287.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/5.448, allocations: 39.44 kB / 3.635 GB, free: 287.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009181/5.457, allocations: 5.584 MB / 3.641 GB, free: 285.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/5.459, allocations: 1.347 MB / 3.642 GB, free: 284.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006796/5.46, allocations: 0.4889 MB / 3.643 GB, free: 284.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008306/5.461, allocations: 0.8837 MB / 3.643 GB, free: 283.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/5.462, allocations: 0.6719 MB / 3.644 GB, free: 283.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=117): time 3.527e-06/5.462, allocations: 0 / 3.644 GB, free: 283.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=117): time 0.00307/5.465, allocations: 1.121 MB / 3.645 GB, free: 283.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/5.465, allocations: 245.2 kB / 3.645 GB, free: 283.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/5.466, allocations: 0.6879 MB / 3.646 GB, free: 283.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/5.466, allocations: 29.11 kB / 3.646 GB, free: 283.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/5.467, allocations: 0.505 MB / 3.647 GB, free: 282.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/5.467, allocations: 377.1 kB / 3.647 GB, free: 282.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-05/5.467, allocations: 0.9844 kB / 3.647 GB, free: 282.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001104/5.467, allocations: 345.3 kB / 3.647 GB, free: 282.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/5.468, allocations: 355.2 kB / 3.648 GB, free: 282.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006391/5.468, allocations: 0.5111 MB / 3.648 GB, free: 282.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000755/5.469, allocations: 445.2 kB / 3.649 GB, free: 282.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/5.469, allocations: 96 / 3.649 GB, free: 282.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002497/5.472, allocations: 1.105 MB / 3.65 GB, free: 282.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/5.472, allocations: 5.766 kB / 3.65 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/5.472, allocations: 5.656 kB / 3.65 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007001/5.472, allocations: 91.19 kB / 3.65 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/5.474, allocations: 271.2 kB / 3.65 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/5.476, allocations: 1.461 MB / 3.651 GB, free: 280.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/5.478, allocations: 116.8 kB / 3.652 GB, free: 280.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/5.478, allocations: 42.7 kB / 3.652 GB, free: 280.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000318/5.478, allocations: 123.9 kB / 3.652 GB, free: 280.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/5.478, allocations: 116.8 kB / 3.652 GB, free: 280.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003544/5.482, allocations: 1.417 MB / 3.653 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/5.482, allocations: 12.38 kB / 3.653 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/5.482, allocations: 0.7969 kB / 3.653 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/5.482, allocations: 7.453 kB / 3.653 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005735/5.488, allocations: 2.776 MB / 3.656 GB, free: 280.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/5.488, allocations: 4.812 kB / 3.656 GB, free: 280.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/5.489, allocations: 269.4 kB / 3.656 GB, free: 280.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005739/5.49, allocations: 85.66 kB / 3.656 GB, free: 280.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.433e-05/5.49, allocations: 25.56 kB / 3.656 GB, free: 280.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/5.491, allocations: 1.481 MB / 3.658 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/5.491, allocations: 1.859 kB / 3.658 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003808/5.495, allocations: 1.914 MB / 3.66 GB, free: 278.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009897/5.496, allocations: 389.7 kB / 3.66 GB, free: 278.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/5.497, allocations: 9.5 kB / 3.66 GB, free: 278.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/5.498, allocations: 108.7 kB / 3.66 GB, free: 278.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/5.498, allocations: 73.06 kB / 3.66 GB, free: 278.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/5.498, allocations: 57.97 kB / 3.66 GB, free: 278.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0008517/5.499, allocations: 0.5331 MB / 3.661 GB, free: 278.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002344/5.501, allocations: 0.6116 MB / 3.661 GB, free: 278.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (ori1.mExc,ori2.mExc) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003218/5.504, allocations: 1.904 MB / 3.663 GB, free: 277.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002356/5.507, allocations: 1.073 MB / 3.664 GB, free: 277.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/5.507, allocations: 1.719 kB / 3.664 GB, free: 277.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001188/5.508, allocations: 0.6642 MB / 3.665 GB, free: 277.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/5.511, allocations: 393.5 kB / 3.665 GB, free: 277.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007437/5.518, allocations: 2.285 MB / 3.667 GB, free: 277.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/5.52, allocations: 1.479 MB / 3.669 GB, free: 276.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.865e-06/5.52, allocations: 0 / 3.669 GB, free: 276.3 MB / 1.151 GB Notification: Performance of Templates: time 0.06306/5.583, allocations: 31.49 MB / 3.7 GB, free: 266.8 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches