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.002052/0.002052, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 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.002172/0.002172, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.502/1.502, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.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.2342/0.2342, allocations: 46.96 MB / 361.6 MB, free: 4.016 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.001993/0.001993, allocations: 67.89 kB / 0.4973 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3806, allocations: 66.04 MB / 0.5618 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003531/0.3841, allocations: 1.688 MB / 0.5635 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004418/0.3846, allocations: 159.5 kB / 0.5636 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.837e-05/0.3846, allocations: 3.938 kB / 0.5636 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.615e-05/0.3847, allocations: 7.875 kB / 0.5636 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.207e-05/0.3847, allocations: 11.88 kB / 0.5636 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.3851, allocations: 107.6 kB / 0.5637 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001834/0.3853, allocations: 107.8 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.3854, allocations: 25.58 kB / 0.5639 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.3855, allocations: 43.84 kB / 0.5639 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.797e-05/0.3856, allocations: 47.78 kB / 0.564 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.3856, allocations: 12 kB / 0.564 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.3856, allocations: 8 kB / 0.564 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.575e-05/0.3857, allocations: 23.91 kB / 0.564 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.158e-05/0.3857, allocations: 31.86 kB / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.3859, allocations: 93.95 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3859, allocations: 4 kB / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3859, allocations: 0 / 0.5641 GB, free: 1.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.3859, allocations: 0 / 0.5641 GB, free: 1.781 MB / 398.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.0007782/0.3867, allocations: 373.8 kB / 0.5645 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3867, allocations: 8.031 kB / 0.5645 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.416e-05/0.3868, allocations: 16.84 kB / 0.5645 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.3871, allocations: 146.4 kB / 0.5646 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.3871, allocations: 4.375 kB / 0.5646 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.3871, allocations: 8.375 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004354/0.3875, allocations: 208.6 kB / 0.5648 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3875, allocations: 192 / 0.5648 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.3876, allocations: 7.938 kB / 0.5649 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3876, allocations: 4 kB / 0.5649 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.388, allocations: 107.8 kB / 0.565 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007113/0.3887, allocations: 480.5 kB / 0.5654 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004257/0.3891, allocations: 138.4 kB / 0.5656 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.3893, allocations: 56.84 kB / 0.5656 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.3894, allocations: 4 kB / 0.5656 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.3894, allocations: 38.55 kB / 0.5656 GB, free: 68 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.3894, allocations: 0 / 0.5656 GB, free: 68 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000731/0.3901, allocations: 185.5 kB / 0.5658 GB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001592/0.3903, allocations: 106.8 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.3904, allocations: 134.2 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.3904, allocations: 29.7 kB / 0.5661 GB, free: 15.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.3906, allocations: 112 kB / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.3906, allocations: 23.84 kB / 0.5662 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.3907, allocations: 29.7 kB / 0.5662 GB, free: 15.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.3909, allocations: 322.8 kB / 0.5665 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.3911, allocations: 51.94 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.3914, allocations: 139.6 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004138/0.3918, allocations: 118.5 kB / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3918, allocations: 0 / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004436/0.3922, allocations: 149.5 kB / 0.567 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3922, allocations: 4 kB / 0.567 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.3922, allocations: 4 kB / 0.567 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3923, allocations: 4.062 kB / 0.567 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.3924, allocations: 27.91 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3924, allocations: 4 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.3926, allocations: 35.86 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.3926, allocations: 0 / 0.5671 GB, free: 14.5 MB / 414.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 0.0001158/0.3927, allocations: 121.8 kB / 0.5672 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.3927, allocations: 7.953 kB / 0.5672 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/0.3928, allocations: 24.7 kB / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3928, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3928, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3928, allocations: 0 / 0.5672 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.393, allocations: 137.2 kB / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.393, allocations: 0 / 0.5673 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.3931, allocations: 27.95 kB / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3932, allocations: 0 / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.3932, allocations: 0 / 0.5674 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3932, allocations: 3.938 kB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.3932, allocations: 8 kB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004887/0.3937, allocations: 243.3 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.3937, allocations: 7.953 kB / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.3937, allocations: 0 / 0.5676 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.3939, allocations: 31.95 kB / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/0.3939, allocations: 11.98 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.3939, allocations: 4 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.394, allocations: 105.9 kB / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.394, allocations: 0 / 0.5678 GB, free: 13.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000244/0.3942, allocations: 27.88 kB / 0.5678 GB, free: 13.7 MB / 414.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 0.0001262/0.3944, allocations: 95.19 kB / 0.5679 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004322/0.3948, allocations: 115.9 kB / 0.568 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3948, allocations: 4 kB / 0.568 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.395, allocations: 60.45 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.3953, allocations: 27.38 kB / 0.5681 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006042/0.3959, allocations: 222.2 kB / 0.5683 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.549e-05/0.396, allocations: 81.31 kB / 0.5684 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.826e-05/0.3961, allocations: 16.64 kB / 0.5684 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/0.3961, allocations: 15.44 kB / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3961, allocations: 0 / 0.5684 GB, free: 13.03 MB / 414.1 MB Notification: Performance of Templates: time 0.004865/0.401, allocations: 1.606 MB / 0.57 GB, free: 11.44 MB / 414.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 cvode -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.207632591002039]