Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/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/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/ClaRa 1.8.2-main/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package TILMedia with version 1.8.1 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo) Using package SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|T.k1|T.k2|T.u1|T.u2|T.y|Time|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|T.k1|T.k2|T.u1|T.u2|T.y|Time|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.01247/0.01247, allocations: 1.439 MB / 17.75 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1273/0.1273, allocations: 22.37 MB / 41.16 MB, free: 7.762 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 108 kB / 48.66 MB, free: 244 kB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 195.2 kB / 56.26 MB, free: 9.449 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 286.6 MB, free: 13.94 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8678/0.8678, allocations: 127.8 MB / 471.2 MB, free: 0.543 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 131.8 kB / 0.636 GB, free: 13.18 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3832, allocations: 82.34 MB / 0.7164 GB, free: 9.57 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.003277/0.3865, allocations: 2.294 MB / 0.7186 GB, free: 7.805 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.0008615/0.3874, allocations: 469.3 kB / 0.7191 GB, free: 7.441 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.95e-05/0.3874, allocations: 0 / 0.7191 GB, free: 7.441 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 4.832e-05/0.3875, allocations: 11.86 kB / 0.7191 GB, free: 7.43 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 6.59e-05/0.3876, allocations: 14.88 kB / 0.7191 GB, free: 7.418 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.3878, allocations: 33.89 kB / 0.7191 GB, free: 7.391 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.388, allocations: 84.36 kB / 0.7192 GB, free: 7.34 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.3881, allocations: 23.23 kB / 0.7192 GB, free: 7.328 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.3883, allocations: 36.78 kB / 0.7192 GB, free: 7.305 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 6.957e-05/0.3883, allocations: 45.36 kB / 0.7193 GB, free: 7.27 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.3884, allocations: 6.438 kB / 0.7193 GB, free: 7.27 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 1.814e-05/0.3884, allocations: 7.938 kB / 0.7193 GB, free: 7.27 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 5.384e-05/0.3884, allocations: 17.55 kB / 0.7193 GB, free: 7.254 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 4.373e-05/0.3885, allocations: 36.8 kB / 0.7194 GB, free: 7.227 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.3886, allocations: 74.5 kB / 0.7194 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3886, allocations: 0 / 0.7194 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3886, allocations: 1.312 kB / 0.7194 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3887, allocations: 0 / 0.7194 GB, free: 7.172 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006124/0.3893, allocations: 407.1 kB / 0.7198 GB, free: 6.77 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3893, allocations: 8.875 kB / 0.7198 GB, free: 6.77 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.3894, allocations: 13.53 kB / 0.7198 GB, free: 6.762 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.3895, allocations: 198 kB / 0.72 GB, free: 6.539 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.3896, allocations: 2.781 kB / 0.72 GB, free: 6.539 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.3896, allocations: 7.312 kB / 0.72 GB, free: 6.535 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.3899, allocations: 99.66 kB / 0.7201 GB, free: 6.465 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3899, allocations: 0 / 0.7201 GB, free: 6.465 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.3899, allocations: 1 kB / 0.7201 GB, free: 6.465 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-06/0.3899, allocations: 1 kB / 0.7201 GB, free: 6.465 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.3902, allocations: 78.17 kB / 0.7202 GB, free: 6.43 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.3907, allocations: 329 kB / 0.7205 GB, free: 6.09 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005966/0.3913, allocations: 148.2 kB / 0.7207 GB, free: 6.012 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.3915, allocations: 56.28 kB / 0.7207 GB, free: 5.98 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.3915, allocations: 0 / 0.7207 GB, free: 5.98 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.3915, allocations: 32.25 kB / 0.7207 GB, free: 5.941 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.3915, allocations: 0 / 0.7207 GB, free: 5.941 MB / 0.5138 GB Notification: Performance of matching and sorting (n=5): time 0.0006279/0.3921, allocations: 176.3 kB / 0.7209 GB, free: 5.844 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.3922, allocations: 53.19 kB / 0.721 GB, free: 5.781 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.3923, allocations: 124.9 kB / 0.7211 GB, free: 5.664 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3923, allocations: 27.05 kB / 0.7211 GB, free: 5.633 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.3924, allocations: 104 kB / 0.7212 GB, free: 5.531 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.3924, allocations: 17.22 kB / 0.7212 GB, free: 5.516 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.3925, allocations: 22.73 kB / 0.7212 GB, free: 5.492 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3926, allocations: 329.3 kB / 0.7216 GB, free: 5.164 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.3928, allocations: 50.36 kB / 0.7216 GB, free: 5.141 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.393, allocations: 51.52 kB / 0.7217 GB, free: 5.117 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.3933, allocations: 96.97 kB / 0.7218 GB, free: 5.07 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3933, allocations: 0 / 0.7218 GB, free: 5.07 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003963/0.3937, allocations: 144.8 kB / 0.7219 GB, free: 4.984 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3937, allocations: 5.5 kB / 0.7219 GB, free: 4.984 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3937, allocations: 1.375 kB / 0.7219 GB, free: 4.984 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3938, allocations: 0 / 0.7219 GB, free: 4.984 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.3939, allocations: 29.78 kB / 0.7219 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.3939, allocations: 0 / 0.7219 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.794e-05/0.394, allocations: 17.56 kB / 0.7219 GB, free: 4.965 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.3941, allocations: 9.375 kB / 0.722 GB, free: 4.957 MB / 0.5138 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.424e-05/0.3941, allocations: 121.9 kB / 0.7221 GB, free: 4.832 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.3942, allocations: 6.703 kB / 0.7221 GB, free: 4.828 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.3942, allocations: 11.06 kB / 0.7221 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3942, allocations: 0 / 0.7221 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3942, allocations: 0 / 0.7221 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.3943, allocations: 79.86 kB / 0.7222 GB, free: 4.719 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.3943, allocations: 3.938 kB / 0.7222 GB, free: 4.715 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.3944, allocations: 21.59 kB / 0.7222 GB, free: 4.703 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.111e-05/0.3945, allocations: 6.75 kB / 0.7222 GB, free: 4.699 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007326/0.3952, allocations: 286.5 kB / 0.7225 GB, free: 4.508 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000635/0.3959, allocations: 360.7 kB / 0.7228 GB, free: 4.227 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001835/0.3961, allocations: 48.2 kB / 0.7229 GB, free: 4.207 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 6.087e-05/0.3962, allocations: 104.1 kB / 0.723 GB, free: 4.117 MB / 0.5138 GB Notification: Performance of Backend: time 4.01e-07/0.3962, allocations: 0 / 0.723 GB, free: 4.117 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.000514/0.3967, allocations: 144.6 kB / 0.7231 GB, free: 4.023 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0006431/0.3973, allocations: 0.662 MB / 0.7237 GB, free: 3.363 MB / 0.5138 GB Notification: Performance of Templates: time 0.003499/0.4008, allocations: 1.111 MB / 0.7248 GB, free: 2.801 MB / 0.5138 GB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable CPUtime in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable CPUtime from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! Error: Could not read variable EventCounter in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable EventCounter from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! " Variables in the reference:CPUtime,EventCounter,T.k1,T.k2,T.u1,T.u2,T.y,Time,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2] Variables in the result:T.k1,T.k2,T.u1,T.u2,T.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin