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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.00157, allocations: 173.9 kB / 7.648 MB, free: 1.422 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.696/1.696, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0008752/0.0008748, allocations: 93.73 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1104/0.1104, allocations: 20.17 MB / 351.4 MB, free: 11.01 MB / 250.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 0.7981/0.7981, allocations: 127.6 MB / 0.5233 GB, free: 1.035 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.724e-05, allocations: 0 / 0.611 GB, free: 7.812 MB / 378.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6724/0.6724, allocations: 82.85 MB / 0.6919 GB, free: 3.152 MB / 442.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2352/0.9077, allocations: 118.7 MB / 0.8078 GB, free: 10.54 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.9081, allocations: 87.78 kB / 0.8079 GB, free: 10.46 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 0.01783/0.9259, allocations: 6.033 MB / 0.8138 GB, free: 4.41 MB / 0.5418 GB Notification: Performance of FrontEnd: time 1.353e-06/0.926, allocations: 3.938 kB / 0.8138 GB, free: 4.406 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.926, allocations: 0 / 0.8138 GB, free: 4.406 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.0006582/0.9267, allocations: 434.2 kB / 0.8142 GB, free: 3.938 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.9267, allocations: 8.031 kB / 0.8142 GB, free: 3.93 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.532e-05/0.9268, allocations: 7.906 kB / 0.8143 GB, free: 3.922 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.927, allocations: 194.8 kB / 0.8144 GB, free: 3.691 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/0.9271, allocations: 37.69 kB / 0.8145 GB, free: 3.648 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.9271, allocations: 4 kB / 0.8145 GB, free: 3.645 MB / 0.5418 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000147/0.9273, allocations: 47.98 kB / 0.8145 GB, free: 3.598 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.9274, allocations: 71.3 kB / 0.8146 GB, free: 3.523 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.9274, allocations: 0 / 0.8146 GB, free: 3.523 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.9275, allocations: 0 / 0.8146 GB, free: 3.523 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.9275, allocations: 4 kB / 0.8146 GB, free: 3.52 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.9282, allocations: 349.2 kB / 0.8149 GB, free: 3.141 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.9283, allocations: 70.55 kB / 0.815 GB, free: 3.062 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.9284, allocations: 32.95 kB / 0.815 GB, free: 3.027 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.9284, allocations: 8.141 kB / 0.815 GB, free: 3.02 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.9284, allocations: 34.67 kB / 0.8151 GB, free: 2.977 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=8): time 1.694e-06/0.9285, allocations: 3.938 kB / 0.8151 GB, free: 2.973 MB / 0.5418 GB Notification: Performance of matching and sorting (n=8): time 0.0002603/0.9287, allocations: 93.56 kB / 0.8152 GB, free: 2.875 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.9288, allocations: 59.36 kB / 0.8152 GB, free: 2.805 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.9289, allocations: 119.2 kB / 0.8153 GB, free: 2.684 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.9289, allocations: 25.7 kB / 0.8154 GB, free: 2.652 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.929, allocations: 100.2 kB / 0.8155 GB, free: 2.547 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.929, allocations: 27.61 kB / 0.8155 GB, free: 2.52 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.929, allocations: 0 / 0.8155 GB, free: 2.52 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.9292, allocations: 322.1 kB / 0.8158 GB, free: 2.199 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.825e-05/0.9293, allocations: 31.98 kB / 0.8158 GB, free: 2.168 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.077e-05/0.9293, allocations: 28 kB / 0.8158 GB, free: 2.141 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.052e-05/0.9294, allocations: 23.98 kB / 0.8159 GB, free: 2.117 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.9294, allocations: 8 kB / 0.8159 GB, free: 2.109 MB / 0.5418 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001933/0.9296, allocations: 109.5 kB / 0.816 GB, free: 1.996 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.9296, allocations: 4.625 kB / 0.816 GB, free: 1.992 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.9296, allocations: 0 / 0.816 GB, free: 1.992 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.9297, allocations: 0 / 0.816 GB, free: 1.992 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.9301, allocations: 87.92 kB / 0.8161 GB, free: 1.906 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.9302, allocations: 3.938 kB / 0.8161 GB, free: 1.902 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.9303, allocations: 31.86 kB / 0.8161 GB, free: 1.871 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.9303, allocations: 4 kB / 0.8161 GB, free: 1.867 MB / 0.5418 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.0001052/0.9304, allocations: 108.8 kB / 0.8162 GB, free: 1.754 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.9305, allocations: 11.91 kB / 0.8162 GB, free: 1.742 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.9305, allocations: 8.625 kB / 0.8162 GB, free: 1.734 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.9305, allocations: 0 / 0.8162 GB, free: 1.734 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.9305, allocations: 4 kB / 0.8162 GB, free: 1.73 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.9305, allocations: 3.984 kB / 0.8162 GB, free: 1.727 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.9307, allocations: 173 kB / 0.8164 GB, free: 1.523 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9308, allocations: 0 / 0.8164 GB, free: 1.523 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/0.9312, allocations: 87.92 kB / 0.8165 GB, free: 1.438 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.9313, allocations: 8 kB / 0.8165 GB, free: 1.43 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.9313, allocations: 0 / 0.8165 GB, free: 1.43 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.9313, allocations: 0 / 0.8165 GB, free: 1.43 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.9313, allocations: 4 kB / 0.8165 GB, free: 1.426 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.9316, allocations: 243.3 kB / 0.8167 GB, free: 1.172 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.9317, allocations: 89.03 kB / 0.8168 GB, free: 1.066 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.9317, allocations: 7.922 kB / 0.8168 GB, free: 1.059 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.9319, allocations: 20.05 kB / 0.8168 GB, free: 1.039 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.9319, allocations: 11.98 kB / 0.8169 GB, free: 1.027 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.932, allocations: 4 kB / 0.8169 GB, free: 1.023 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 5.614e-05/0.932, allocations: 91.27 kB / 0.8169 GB, free: 0.9336 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.4e-07/0.932, allocations: 4 kB / 0.8169 GB, free: 0.9297 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0003463/0.9324, allocations: 31.94 kB / 0.817 GB, free: 0.8984 MB / 0.5418 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.0002367/0.9326, allocations: 131.2 kB / 0.8171 GB, free: 0.7617 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0001751/0.9328, allocations: 75.91 kB / 0.8172 GB, free: 0.6836 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9328, allocations: 0 / 0.8172 GB, free: 0.6836 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 6.518e-05/0.9329, allocations: 36 kB / 0.8172 GB, free: 0.6484 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.9331, allocations: 15.88 kB / 0.8172 GB, free: 0.6328 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.9335, allocations: 147.7 kB / 0.8174 GB, free: 472 kB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.9339, allocations: 0.7041 MB / 0.8181 GB, free: 15.73 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 7.029e-05/0.934, allocations: 19.95 kB / 0.8181 GB, free: 15.71 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/0.934, allocations: 11.44 kB / 0.8181 GB, free: 15.7 MB / 0.5574 GB Notification: Performance of SimCode: time 2.51e-07/0.934, allocations: 0 / 0.8181 GB, free: 15.7 MB / 0.5574 GB Notification: Performance of Templates: time 0.003792/0.9378, allocations: 1.179 MB / 0.8192 GB, free: 14.55 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