Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo", uses=false) loadFile("/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo", uses=false) Using package ClaRa with version 1.8.0 (/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo) Using package TILMedia with version 1.8.0 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/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) 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) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time_bak|noise.Tau_sample|noise.Tau_smooth|der.noise.y.|noise.m_in|noise.mean|noise.mean_const|noise.sigma|noise.startTime|noise.stdDev_const|noise.stdDev_in|noise.varMeanValue|noise.varStandardDeviation|noise.y|ramp1.duration|ramp1.height|ramp1.offset|ramp1.startTime|ramp1.y|ramp3.duration|ramp3.height|ramp3.offset|ramp3.startTime|ramp3.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2") translateModel(ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time_bak|noise.Tau_sample|noise.Tau_smooth|der.noise.y.|noise.m_in|noise.mean|noise.mean_const|noise.sigma|noise.startTime|noise.stdDev_const|noise.stdDev_in|noise.varMeanValue|noise.varStandardDeviation|noise.y|ramp1.duration|ramp1.height|ramp1.offset|ramp1.startTime|ramp1.y|ramp3.duration|ramp3.height|ramp3.offset|ramp3.startTime|ramp3.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2") [: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.005977/0.005977, allocations: 178.3 kB / 7.462 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.65/1.65, allocations: 221.4 MB / 229.3 MB, free: 3.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 97.25 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1338/0.1338, allocations: 20.17 MB / 351.1 MB, free: 10.3 MB / 298.7 MB [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Components/Sensors/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: TinySensorGas_L1_O2dry [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/Fundamentals/PressureLoss/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: ShellType_L3 TubeType_L2 TubeType_L3 ShellType_L2 [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/Fundamentals/HeatTransport/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: ShellType_L3 TubeType_L2 TubeType_L3 ShellType_L2 [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/FluidVolumes/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: VolumeVLE_2 VolumeVLE_3_TwoZones Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 1.323/1.323, allocations: 127.6 MB / 0.5229 GB, free: 4.684 MB / 346.8 MB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.586e-06, allocations: 0 / 0.6104 GB, free: 10.89 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7435/0.7435, allocations: 82.84 MB / 0.6913 GB, free: 33.94 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.9425, allocations: 118.6 MB / 0.8071 GB, free: 7.066 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.9429, allocations: 91.2 kB / 0.8072 GB, free: 6.98 MB / 0.5418 GB Notification: Performance of FrontEnd: time 0.01934/0.9623, allocations: 5.688 MB / 0.8128 GB, free: 1.355 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.938e-05/0.9624, allocations: 0 / 0.8128 GB, free: 1.355 MB / 0.5418 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007987/0.9632, allocations: 433.8 kB / 0.8132 GB, free: 0.8945 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.9632, allocations: 8.031 kB / 0.8132 GB, free: 0.8867 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.447e-05/0.9633, allocations: 7.906 kB / 0.8132 GB, free: 0.8789 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.9637, allocations: 194.9 kB / 0.8134 GB, free: 0.6484 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.9638, allocations: 41.55 kB / 0.8134 GB, free: 0.6055 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.9638, allocations: 7.906 kB / 0.8134 GB, free: 0.5977 MB / 0.5418 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001871/0.964, allocations: 47.97 kB / 0.8135 GB, free: 0.5508 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.9642, allocations: 67.09 kB / 0.8135 GB, free: 492 kB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.9643, allocations: 2.906 kB / 0.8135 GB, free: 492 kB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.9643, allocations: 0 / 0.8135 GB, free: 492 kB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.9643, allocations: 0 / 0.8135 GB, free: 492 kB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008068/0.9651, allocations: 356.4 kB / 0.8139 GB, free: 104 kB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.9653, allocations: 71.34 kB / 0.8139 GB, free: 24 kB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.9655, allocations: 37.75 kB / 0.814 GB, free: 15.98 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.9655, allocations: 4.875 kB / 0.814 GB, free: 15.98 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.9656, allocations: 32.7 kB / 0.814 GB, free: 15.94 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=8): time 1.452e-06/0.9656, allocations: 0 / 0.814 GB, free: 15.94 MB / 0.5574 GB Notification: Performance of matching and sorting (n=8): time 0.0003763/0.9659, allocations: 112.9 kB / 0.8141 GB, free: 15.83 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.966, allocations: 55.34 kB / 0.8142 GB, free: 15.76 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.9661, allocations: 117.1 kB / 0.8143 GB, free: 15.64 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.9662, allocations: 25.7 kB / 0.8143 GB, free: 15.61 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.9662, allocations: 88.84 kB / 0.8144 GB, free: 15.52 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.9663, allocations: 28.11 kB / 0.8144 GB, free: 15.49 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-06/0.9663, allocations: 0.9688 kB / 0.8144 GB, free: 15.49 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.9665, allocations: 318.8 kB / 0.8147 GB, free: 15.17 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.627e-05/0.9665, allocations: 32.61 kB / 0.8148 GB, free: 15.14 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.485e-05/0.9666, allocations: 28.72 kB / 0.8148 GB, free: 15.11 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.9667, allocations: 31.98 kB / 0.8148 GB, free: 15.08 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9667, allocations: 3.156 kB / 0.8148 GB, free: 15.08 MB / 0.5574 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002321/0.967, allocations: 112.7 kB / 0.8149 GB, free: 14.97 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.967, allocations: 8 kB / 0.8149 GB, free: 14.96 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.967, allocations: 0 / 0.8149 GB, free: 14.96 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.967, allocations: 3.984 kB / 0.8149 GB, free: 14.96 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.9676, allocations: 91.25 kB / 0.815 GB, free: 14.88 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.9676, allocations: 3.984 kB / 0.815 GB, free: 14.87 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.9677, allocations: 31.11 kB / 0.8151 GB, free: 14.84 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.9678, allocations: 4 kB / 0.8151 GB, free: 14.84 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.9679, allocations: 113.1 kB / 0.8152 GB, free: 14.72 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.9679, allocations: 9.438 kB / 0.8152 GB, free: 14.71 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.826e-05/0.968, allocations: 12.36 kB / 0.8152 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.968, allocations: 4 kB / 0.8152 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.968, allocations: 0 / 0.8152 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.968, allocations: 0.7812 kB / 0.8152 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.9683, allocations: 170.1 kB / 0.8154 GB, free: 14.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.9683, allocations: 3.75 kB / 0.8154 GB, free: 14.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.9689, allocations: 91.89 kB / 0.8155 GB, free: 14.41 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.9689, allocations: 0 / 0.8155 GB, free: 14.41 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.9689, allocations: 4 kB / 0.8155 GB, free: 14.41 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.9689, allocations: 1.75 kB / 0.8155 GB, free: 14.41 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.9689, allocations: 0 / 0.8155 GB, free: 14.41 MB / 0.5574 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003987/0.9693, allocations: 247.9 kB / 0.8157 GB, free: 14.15 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.9694, allocations: 89 kB / 0.8158 GB, free: 14.05 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.9694, allocations: 2.75 kB / 0.8158 GB, free: 14.05 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.9696, allocations: 24.77 kB / 0.8158 GB, free: 14.02 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.9697, allocations: 8.453 kB / 0.8158 GB, free: 14.02 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.9697, allocations: 4 kB / 0.8158 GB, free: 14.01 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.529e-05/0.9698, allocations: 103.4 kB / 0.8159 GB, free: 13.91 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0003433/0.9701, allocations: 31.94 kB / 0.8159 GB, free: 13.88 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (noise.y_,noise.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003339/0.9705, allocations: 124.3 kB / 0.8161 GB, free: 13.75 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0002062/0.9707, allocations: 72.89 kB / 0.8161 GB, free: 13.68 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.9707, allocations: 4 kB / 0.8161 GB, free: 13.68 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 7.639e-05/0.9708, allocations: 36.98 kB / 0.8162 GB, free: 13.64 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.971, allocations: 13.11 kB / 0.8162 GB, free: 13.63 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.9716, allocations: 153.6 kB / 0.8163 GB, free: 13.46 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005191/0.9721, allocations: 0.7207 MB / 0.817 GB, free: 12.71 MB / 0.5574 GB Notification: Performance of SimCode: time 2.31e-07/0.9721, allocations: 0 / 0.817 GB, free: 12.71 MB / 0.5574 GB Notification: Performance of Templates: time 0.00517/0.9773, allocations: 1.479 MB / 0.8185 GB, free: 11.31 MB / 0.5574 GB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.mat","../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable Time_bak in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2_res.mat. Warning: Get data of variable Time_bak from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testRandomGenerators2_res.mat failed! " Variables in the reference:Time,Time_bak,noise.Tau_sample,noise.Tau_smooth,der(noise.y),noise.m_in,noise.mean,noise.mean_const,noise.sigma,noise.startTime,noise.stdDev_const,noise.stdDev_in,noise.varMeanValue,noise.varStandardDeviation,noise.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp3.duration,ramp3.height,ramp3.offset,ramp3.startTime,ramp3.y Variables in the result:der(noise.y),noise.Tau_sample,noise.Tau_smooth,noise.m_in,noise.mean,noise.mean_const,noise.sigma,noise.startTime,noise.stdDev_const,noise.stdDev_in,noise.varMeanValue,noise.varStandardDeviation,noise.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp3.duration,ramp3.height,ramp3.offset,ramp3.startTime,ramp3.y,time