Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 177.1 MB / 204.7 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2751/0.2751, allocations: 34.25 MB / 295.4 MB, free: 14.51 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 79.88 kB / 443.1 MB, free: 6.547 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3841, allocations: 66.05 MB / 0.4973 GB, free: 29.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.00372/0.3878, allocations: 1.704 MB / 0.4989 GB, free: 28.65 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005684/0.3884, allocations: 161.3 kB / 0.4991 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.373e-05/0.3885, allocations: 3.938 kB / 0.4991 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.783e-05/0.3885, allocations: 11.39 kB / 0.4991 GB, free: 28.53 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.995e-05/0.3886, allocations: 11.12 kB / 0.4991 GB, free: 28.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.389, allocations: 107.8 kB / 0.4992 GB, free: 28.46 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.3892, allocations: 109.4 kB / 0.4993 GB, free: 28.41 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.3894, allocations: 19.27 kB / 0.4993 GB, free: 28.4 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.127e-05/0.3895, allocations: 49.59 kB / 0.4994 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.3895, allocations: 33.02 kB / 0.4994 GB, free: 28.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/0.3896, allocations: 13.14 kB / 0.4994 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.5e-05/0.3896, allocations: 9.469 kB / 0.4994 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.527e-05/0.3896, allocations: 26.12 kB / 0.4995 GB, free: 28.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.3897, allocations: 28.42 kB / 0.4995 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.3899, allocations: 93.59 kB / 0.4996 GB, free: 28.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3899, allocations: 0 / 0.4996 GB, free: 28.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3899, allocations: 3.469 kB / 0.4996 GB, free: 28.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.3899, allocations: 0 / 0.4996 GB, free: 28.28 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.0007886/0.3907, allocations: 375.2 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3907, allocations: 9.438 kB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.606e-05/0.3908, allocations: 14.81 kB / 0.5 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.3911, allocations: 145.4 kB / 0.5001 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.3911, allocations: 3.625 kB / 0.5001 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.3911, allocations: 10.81 kB / 0.5001 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.3916, allocations: 206.1 kB / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3916, allocations: 192 / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.3916, allocations: 7.938 kB / 0.5003 GB, free: 27.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.3916, allocations: 7.156 kB / 0.5003 GB, free: 27.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.3921, allocations: 111.9 kB / 0.5004 GB, free: 27.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007334/0.3929, allocations: 476.6 kB / 0.5009 GB, free: 27.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.3934, allocations: 130.2 kB / 0.501 GB, free: 27.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.3937, allocations: 59.62 kB / 0.5011 GB, free: 27.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.3937, allocations: 4 kB / 0.5011 GB, free: 27.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.3937, allocations: 34.03 kB / 0.5011 GB, free: 27.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.3937, allocations: 0 / 0.5011 GB, free: 27.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.000893/0.3946, allocations: 189 kB / 0.5013 GB, free: 27.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.3946, allocations: 110.1 kB / 0.5014 GB, free: 26.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.3948, allocations: 131.6 kB / 0.5015 GB, free: 26.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.3948, allocations: 28.83 kB / 0.5015 GB, free: 26.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.3949, allocations: 106.7 kB / 0.5016 GB, free: 26.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.3949, allocations: 22.64 kB / 0.5017 GB, free: 26.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.395, allocations: 30.81 kB / 0.5017 GB, free: 26.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.312e-05/0.395, allocations: 325.4 kB / 0.502 GB, free: 26.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.3953, allocations: 51.25 kB / 0.502 GB, free: 26.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.3956, allocations: 139.9 kB / 0.5022 GB, free: 26.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.3961, allocations: 117.1 kB / 0.5023 GB, free: 26.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3961, allocations: 0 / 0.5023 GB, free: 26.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005619/0.3966, allocations: 151.5 kB / 0.5024 GB, free: 26.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3967, allocations: 6.156 kB / 0.5024 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3967, allocations: 4.062 kB / 0.5024 GB, free: 26.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.3967, allocations: 3.062 kB / 0.5024 GB, free: 26.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.3969, allocations: 30.06 kB / 0.5025 GB, free: 26.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.3969, allocations: 3.312 kB / 0.5025 GB, free: 26.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.3972, allocations: 35.19 kB / 0.5025 GB, free: 26.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.3972, allocations: 4 kB / 0.5025 GB, free: 26.04 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.782e-05/0.3973, allocations: 127.4 kB / 0.5026 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.3973, allocations: 18.08 kB / 0.5027 GB, free: 25.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.3974, allocations: 11.78 kB / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3974, allocations: 0 / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3974, allocations: 0 / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3974, allocations: 0 / 0.5027 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.3976, allocations: 143.5 kB / 0.5028 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3976, allocations: 192 / 0.5028 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.3978, allocations: 21.58 kB / 0.5028 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.3978, allocations: 7.219 kB / 0.5028 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.3978, allocations: 7.938 kB / 0.5028 GB, free: 25.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3978, allocations: 4 kB / 0.5028 GB, free: 25.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3978, allocations: 0 / 0.5028 GB, free: 25.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006235/0.3984, allocations: 238.7 kB / 0.5031 GB, free: 25.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.621e-05/0.3984, allocations: 7.234 kB / 0.5031 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.3985, allocations: 3.375 kB / 0.5031 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.3987, allocations: 30.98 kB / 0.5031 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.3988, allocations: 6.516 kB / 0.5031 GB, free: 25.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.3988, allocations: 4 kB / 0.5031 GB, free: 25.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.74e-05/0.3989, allocations: 104.2 kB / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3989, allocations: 0 / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.3993, allocations: 23.62 kB / 0.5032 GB, free: 25.48 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 9.563e-05/0.3994, allocations: 92.81 kB / 0.5033 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005894/0.4, allocations: 119.4 kB / 0.5034 GB, free: 25.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4, allocations: 0 / 0.5034 GB, free: 25.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.4003, allocations: 63.05 kB / 0.5035 GB, free: 25.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.4008, allocations: 19.89 kB / 0.5035 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006516/0.4014, allocations: 224.8 kB / 0.5037 GB, free: 25.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.094e-05/0.4015, allocations: 84.8 kB / 0.5038 GB, free: 25.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.902e-05/0.4016, allocations: 10.28 kB / 0.5038 GB, free: 25.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.372e-05/0.4016, allocations: 14.5 kB / 0.5038 GB, free: 25.1 MB / 446.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4016, allocations: 0 / 0.5038 GB, free: 25.1 MB / 446.1 MB Notification: Performance of Templates: time 0.005879/0.4075, allocations: 1.544 MB / 0.5053 GB, free: 24.89 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.252085718908347]