Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.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.TestSlidingmean,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|slidingMean.Tau_mean|slidingMean.u|slidingMean.y|step.height|step.offset|step.startTime|step.y|step1.height|step1.offset|step1.startTime|step1.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean,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|slidingMean.Tau_mean|slidingMean.u|slidingMean.y|step.height|step.offset|step.startTime|step.y|step1.height|step1.offset|step1.startTime|step1.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 96.98 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.08533/0.08533, allocations: 20.11 MB / 360.1 MB, free: 4.805 MB / 298.7 MB Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 0.9698/0.9698, allocations: 126.3 MB / 0.5296 GB, free: 14.98 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 75.89 kB / 0.6208 GB, free: 1.496 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3408, allocations: 81.15 MB / 0.7 GB, free: 33.37 MB / 474.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean): time 0.003194/0.344, allocations: 2.33 MB / 0.7023 GB, free: 31.75 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0007433/0.3448, allocations: 470.5 kB / 0.7028 GB, free: 31.44 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.892e-05/0.3449, allocations: 1.062 kB / 0.7028 GB, free: 31.44 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.345, allocations: 11.44 kB / 0.7028 GB, free: 31.43 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 8.333e-05/0.3451, allocations: 12.28 kB / 0.7028 GB, free: 31.43 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.3455, allocations: 123.6 kB / 0.7029 GB, free: 31.38 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.3457, allocations: 91.7 kB / 0.703 GB, free: 31.33 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 9.402e-05/0.3458, allocations: 18.22 kB / 0.703 GB, free: 31.33 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 4.307e-05/0.3458, allocations: 29.84 kB / 0.703 GB, free: 31.32 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.3459, allocations: 48.66 kB / 0.7031 GB, free: 31.29 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.3459, allocations: 4.406 kB / 0.7031 GB, free: 31.29 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001797/0.3461, allocations: 78.69 kB / 0.7032 GB, free: 31.27 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 6.164e-05/0.3462, allocations: 28.67 kB / 0.7032 GB, free: 31.26 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 4.835e-05/0.3462, allocations: 41.94 kB / 0.7032 GB, free: 31.23 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002421/0.3465, allocations: 141.2 kB / 0.7034 GB, free: 31.18 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3465, allocations: 1.75 kB / 0.7034 GB, free: 31.18 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3465, allocations: 0 / 0.7034 GB, free: 31.18 MB / 474.8 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.3465, allocations: 0.5625 kB / 0.7034 GB, free: 31.18 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005868/0.3471, allocations: 432 kB / 0.7038 GB, free: 30.78 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3472, allocations: 9.781 kB / 0.7038 GB, free: 30.78 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.725e-05/0.3472, allocations: 16.75 kB / 0.7038 GB, free: 30.77 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.3474, allocations: 195.5 kB / 0.704 GB, free: 30.56 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/0.3475, allocations: 44.5 kB / 0.704 GB, free: 30.52 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.3475, allocations: 12.88 kB / 0.704 GB, free: 30.51 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.3478, allocations: 102.5 kB / 0.7041 GB, free: 30.46 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3479, allocations: 8.031 kB / 0.7041 GB, free: 30.46 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.3479, allocations: 5.531 kB / 0.7042 GB, free: 30.45 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3479, allocations: 2.188 kB / 0.7042 GB, free: 30.45 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.3481, allocations: 84.36 kB / 0.7042 GB, free: 30.44 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.3487, allocations: 387.5 kB / 0.7046 GB, free: 30.12 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.349, allocations: 118.2 kB / 0.7047 GB, free: 30.07 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.3491, allocations: 63.3 kB / 0.7048 GB, free: 30.04 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.3492, allocations: 11.33 kB / 0.7048 GB, free: 30.04 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.3492, allocations: 37.34 kB / 0.7048 GB, free: 29.99 MB / 474.8 MB Notification: Performance of pre-optimization done (n=12): time 1.973e-06/0.3492, allocations: 0 / 0.7048 GB, free: 29.99 MB / 474.8 MB Notification: Performance of matching and sorting (n=12): time 0.0005229/0.3497, allocations: 205.8 kB / 0.705 GB, free: 29.91 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.3498, allocations: 53.66 kB / 0.7051 GB, free: 29.85 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.982e-05/0.3499, allocations: 132.3 kB / 0.7052 GB, free: 29.74 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.3499, allocations: 31.98 kB / 0.7052 GB, free: 29.7 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.3499, allocations: 98.42 kB / 0.7053 GB, free: 29.61 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.35, allocations: 40.66 kB / 0.7054 GB, free: 29.58 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.35, allocations: 38.78 kB / 0.7054 GB, free: 29.55 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.3501, allocations: 324.5 kB / 0.7057 GB, free: 29.23 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3503, allocations: 51.53 kB / 0.7058 GB, free: 29.22 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3504, allocations: 54.81 kB / 0.7058 GB, free: 29.21 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002842/0.3507, allocations: 131 kB / 0.7059 GB, free: 29.16 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3507, allocations: 2.031 kB / 0.7059 GB, free: 29.16 MB / 474.8 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003419/0.351, allocations: 172.3 kB / 0.7061 GB, free: 29.08 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3511, allocations: 6.484 kB / 0.7061 GB, free: 29.08 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3511, allocations: 2.594 kB / 0.7061 GB, free: 29.08 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3511, allocations: 1.188 kB / 0.7061 GB, free: 29.08 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.3516, allocations: 76.05 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3516, allocations: 0 / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.511e-05/0.3517, allocations: 19.3 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.3517, allocations: 4.703 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.715e-05/0.3518, allocations: 126.4 kB / 0.7063 GB, free: 28.94 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.634e-05/0.3518, allocations: 8.406 kB / 0.7063 GB, free: 28.94 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004596/0.3523, allocations: 193 kB / 0.7065 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.3523, allocations: 1.906 kB / 0.7065 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3523, allocations: 0.5 kB / 0.7065 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3523, allocations: 1.906 kB / 0.7065 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006387/0.353, allocations: 491.6 kB / 0.707 GB, free: 28.48 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.353, allocations: 1.125 kB / 0.707 GB, free: 28.48 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.3535, allocations: 68.36 kB / 0.7071 GB, free: 28.48 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3535, allocations: 2.984 kB / 0.7071 GB, free: 28.48 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.3535, allocations: 7.391 kB / 0.7071 GB, free: 28.48 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3535, allocations: 6.219 kB / 0.7071 GB, free: 28.47 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3535, allocations: 3.938 kB / 0.7071 GB, free: 28.47 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002979/0.3565, allocations: 1.964 MB / 0.709 GB, free: 26.84 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/0.3566, allocations: 89.52 kB / 0.7091 GB, free: 26.73 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.3566, allocations: 1.188 kB / 0.7091 GB, free: 26.73 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3567, allocations: 13.62 kB / 0.7091 GB, free: 26.73 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.3568, allocations: 14.64 kB / 0.7091 GB, free: 26.72 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.3568, allocations: 3.656 kB / 0.7091 GB, free: 26.72 MB / 474.8 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.3569, allocations: 106.1 kB / 0.7092 GB, free: 26.63 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3569, allocations: 3.938 kB / 0.7092 GB, free: 26.62 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0004485/0.3573, allocations: 44.41 kB / 0.7093 GB, free: 26.61 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (noise.y_,noise.y,slidingMean.integral) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004061/0.3578, allocations: 181 kB / 0.7094 GB, free: 26.5 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.3582, allocations: 139.5 kB / 0.7096 GB, free: 26.44 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3582, allocations: 4 kB / 0.7096 GB, free: 26.44 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.3584, allocations: 73.27 kB / 0.7096 GB, free: 26.41 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.3587, allocations: 14.69 kB / 0.7097 GB, free: 26.4 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007017/0.3594, allocations: 471 kB / 0.7101 GB, free: 26 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.3595, allocations: 0.7119 MB / 0.7108 GB, free: 25.29 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.0001223/0.3597, allocations: 25.59 kB / 0.7108 GB, free: 25.28 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.562e-05/0.3597, allocations: 15.69 kB / 0.7108 GB, free: 25.27 MB / 474.8 MB Notification: Performance of SimCode: time 2.9e-07/0.3597, allocations: 0.7188 kB / 0.7108 GB, free: 25.27 MB / 474.8 MB Notification: Performance of Templates: time 0.003923/0.3637, allocations: 1.581 MB / 0.7124 GB, free: 24.53 MB / 474.8 MB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.mat","../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean.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.TestSlidingmean_res.mat. Warning: Get data of variable Time_bak from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestSlidingmean_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,slidingMean.Tau_mean,slidingMean.u,slidingMean.y,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.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,slidingMean.Tau_mean,slidingMean.u,slidingMean.u_start,slidingMean.y,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time