Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 164.1 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 177.2 MB / 204.9 MB, free: 9.055 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 34.27 MB / 295.5 MB, free: 14.62 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 59.91 kB / 443.1 MB, free: 6.746 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3807, allocations: 66.01 MB / 0.4972 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003117/0.3839, allocations: 1.704 MB / 0.4989 GB, free: 28.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004541/0.3843, allocations: 151 kB / 0.499 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3844, allocations: 7.344 kB / 0.499 GB, free: 28.61 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 5.152e-05/0.3845, allocations: 11.25 kB / 0.499 GB, free: 28.6 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.526e-05/0.3846, allocations: 15.86 kB / 0.4991 GB, free: 28.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.3849, allocations: 101.3 kB / 0.4992 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.3851, allocations: 102.6 kB / 0.4992 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.3852, allocations: 26.3 kB / 0.4993 GB, free: 28.47 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.3853, allocations: 42.19 kB / 0.4993 GB, free: 28.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.672e-05/0.3854, allocations: 39.94 kB / 0.4994 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.3854, allocations: 9.125 kB / 0.4994 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.3854, allocations: 9.562 kB / 0.4994 GB, free: 28.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.3854, allocations: 25.81 kB / 0.4994 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.529e-05/0.3855, allocations: 36.64 kB / 0.4994 GB, free: 28.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.3856, allocations: 86.66 kB / 0.4995 GB, free: 28.35 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3856, allocations: 0 / 0.4995 GB, free: 28.35 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3856, allocations: 3.938 kB / 0.4995 GB, free: 28.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.3856, allocations: 6.656 kB / 0.4995 GB, free: 28.34 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006534/0.3863, allocations: 367.9 kB / 0.4999 GB, free: 28.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3863, allocations: 9 kB / 0.4999 GB, free: 28.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.3864, allocations: 15.97 kB / 0.4999 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.3867, allocations: 151.4 kB / 0.5 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.3867, allocations: 4.375 kB / 0.5 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.3867, allocations: 6.594 kB / 0.5001 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003723/0.3871, allocations: 206.9 kB / 0.5002 GB, free: 27.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3871, allocations: 192 / 0.5002 GB, free: 27.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.3871, allocations: 7.125 kB / 0.5003 GB, free: 27.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3871, allocations: 0 / 0.5003 GB, free: 27.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.3875, allocations: 117.2 kB / 0.5004 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006144/0.3881, allocations: 480.8 kB / 0.5008 GB, free: 27.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004419/0.3885, allocations: 132.6 kB / 0.501 GB, free: 27.22 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.3887, allocations: 59.91 kB / 0.501 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3887, allocations: 0 / 0.501 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.3887, allocations: 33.66 kB / 0.501 GB, free: 27.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.3887, allocations: 4 kB / 0.501 GB, free: 27.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006135/0.3894, allocations: 191.2 kB / 0.5012 GB, free: 27.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.3894, allocations: 106 kB / 0.5013 GB, free: 26.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.666e-05/0.3895, allocations: 136.8 kB / 0.5015 GB, free: 26.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.3895, allocations: 29.7 kB / 0.5015 GB, free: 26.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.3896, allocations: 113.4 kB / 0.5016 GB, free: 26.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.3896, allocations: 18.83 kB / 0.5016 GB, free: 26.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.3896, allocations: 26.73 kB / 0.5016 GB, free: 26.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.579e-05/0.3897, allocations: 325 kB / 0.5019 GB, free: 26.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.3899, allocations: 49.42 kB / 0.502 GB, free: 26.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.3901, allocations: 142.8 kB / 0.5021 GB, free: 26.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.3904, allocations: 108.3 kB / 0.5022 GB, free: 26.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3904, allocations: 0 / 0.5022 GB, free: 26.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003875/0.3908, allocations: 157.2 kB / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3908, allocations: 6.438 kB / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3908, allocations: 0 / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3908, allocations: 0 / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.3909, allocations: 37.41 kB / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.391, allocations: 0 / 0.5024 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.3911, allocations: 34.56 kB / 0.5025 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.3911, allocations: 7.281 kB / 0.5025 GB, free: 26.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.638e-05/0.3912, allocations: 124.2 kB / 0.5026 GB, free: 25.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.3912, allocations: 10.61 kB / 0.5026 GB, free: 25.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.3913, allocations: 12.77 kB / 0.5026 GB, free: 25.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3913, allocations: 7.125 kB / 0.5026 GB, free: 25.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3913, allocations: 0 / 0.5026 GB, free: 25.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3913, allocations: 0 / 0.5026 GB, free: 25.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.3914, allocations: 142.6 kB / 0.5028 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3914, allocations: 4 kB / 0.5028 GB, free: 25.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.3916, allocations: 26.67 kB / 0.5028 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3916, allocations: 0 / 0.5028 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.3916, allocations: 3.938 kB / 0.5028 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.3916, allocations: 3.219 kB / 0.5028 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3916, allocations: 0 / 0.5028 GB, free: 25.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.392, allocations: 249.1 kB / 0.503 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.434e-05/0.392, allocations: 7.297 kB / 0.503 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.392, allocations: 3.328 kB / 0.503 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.3922, allocations: 22.69 kB / 0.5031 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.3922, allocations: 10.56 kB / 0.5031 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.3922, allocations: 0 / 0.5031 GB, free: 25.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.734e-05/0.3923, allocations: 108.6 kB / 0.5032 GB, free: 25.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3923, allocations: 0 / 0.5032 GB, free: 25.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000314/0.3926, allocations: 23.69 kB / 0.5032 GB, free: 25.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.435e-05/0.3927, allocations: 100.2 kB / 0.5033 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.3931, allocations: 111.6 kB / 0.5034 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3931, allocations: 0 / 0.5034 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.3933, allocations: 66.48 kB / 0.5035 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.3936, allocations: 17.17 kB / 0.5035 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005362/0.3942, allocations: 221.4 kB / 0.5037 GB, free: 25.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.07e-05/0.3942, allocations: 83.59 kB / 0.5038 GB, free: 25.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.705e-05/0.3943, allocations: 15.19 kB / 0.5038 GB, free: 25.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.3943, allocations: 22.72 kB / 0.5038 GB, free: 25.16 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3943, allocations: 0 / 0.5038 GB, free: 25.16 MB / 446.1 MB Notification: Performance of Templates: time 0.004467/0.3988, allocations: 1.539 MB / 0.5053 GB, free: 24.96 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,ramp.y,greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y Variables in the result:gain.k,greaterEqualThreshold.threshold,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.uMax,limiterMinZero.uMin,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 5.089715752983466]