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.001083/0.001083, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001521/0.002605, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001114/0.001114, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001416/0.002529, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.04/1.04, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09592/1.136, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.307/0.307, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02793/0.335, allocations: 13.1 MB / 291.3 MB, free: 7.367 MB / 282.7 MB " [Timeout remaining time 180] 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 1.724e-06/1.724e-06, allocations: 0 / 292.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.295e-05, allocations: 4.312 kB / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002388/0.002411, allocations: 1.796 MB / 294.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003062/0.002717, allocations: 163.3 kB / 294.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.937e-05/0.002776, allocations: 8 kB / 294.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.535e-05/0.002802, allocations: 7.875 kB / 294.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.133e-05/0.002833, allocations: 11.86 kB / 294.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.003027, allocations: 103.8 kB / 294.7 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.003151, allocations: 107.7 kB / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.003254, allocations: 30.66 kB / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.003369, allocations: 67.89 kB / 294.9 MB, free: 4.023 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.308e-05/0.003422, allocations: 31.89 kB / 294.9 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.003448, allocations: 8 kB / 294.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.00346, allocations: 12 kB / 294.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.875e-05/0.003479, allocations: 15.94 kB / 295 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.003507, allocations: 19.94 kB / 295 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.003624, allocations: 63.75 kB / 295 MB, free: 3.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.1e-05/0.003635, allocations: 0 / 295 MB, free: 3.875 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.003636, allocations: 4 kB / 295.1 MB, free: 3.871 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.003646, allocations: 0 / 295.1 MB, free: 3.871 MB / 282.7 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.0003906/0.004037, allocations: 333.3 kB / 295.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.004066, allocations: 16.56 kB / 295.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.004098, allocations: 20.92 kB / 295.4 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.004232, allocations: 137.6 kB / 295.5 MB, free: 3.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.004242, allocations: 8.375 kB / 295.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.004253, allocations: 4.375 kB / 295.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.004434, allocations: 187.4 kB / 295.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.004441, allocations: 4.188 kB / 295.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.004449, allocations: 4.375 kB / 295.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.004453, allocations: 384 / 295.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.682e-05/0.0045, allocations: 31.86 kB / 295.8 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.004831, allocations: 388.4 kB / 296.2 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.658e-05/0.004927, allocations: 62.47 kB / 296.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.238e-05/0.00495, allocations: 16.8 kB / 296.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.004968, allocations: 4 kB / 296.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.004988, allocations: 30.56 kB / 296.3 MB, free: 2.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.113e-06/0.004989, allocations: 0 / 296.3 MB, free: 2.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001217/0.005111, allocations: 65.91 kB / 296.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.00514, allocations: 67.33 kB / 296.4 MB, free: 2.371 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.542e-05/0.005215, allocations: 134.6 kB / 296.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.005229, allocations: 25.7 kB / 296.6 MB, free: 2.195 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.005283, allocations: 112.1 kB / 296.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.031e-05/0.005293, allocations: 11.86 kB / 296.7 MB, free: 2.07 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/0.005328, allocations: 29.69 kB / 296.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.005427, allocations: 326.8 kB / 297 MB, free: 1.707 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.023e-05/0.005447, allocations: 8 kB / 297 MB, free: 1.699 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.583e-05/0.005503, allocations: 95.67 kB / 297.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.674e-05/0.00555, allocations: 46.59 kB / 297.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.005552, allocations: 0 / 297.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.256e-05/0.005634, allocations: 81.5 kB / 297.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.005646, allocations: 4 kB / 297.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.00565, allocations: 0 / 297.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.005657, allocations: 4 kB / 297.3 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.08e-05/0.005738, allocations: 23.98 kB / 297.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.327e-06/0.005741, allocations: 4 kB / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.958e-05/0.005791, allocations: 27.94 kB / 297.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.005798, allocations: 11.92 kB / 297.3 MB, free: 1.363 MB / 282.7 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 6.447e-05/0.005862, allocations: 117.8 kB / 297.4 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.005881, allocations: 7.938 kB / 297.5 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.00591, allocations: 20.77 kB / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.005912, allocations: 0 / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.005914, allocations: 0 / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.005918, allocations: 0 / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.00602, allocations: 85.88 kB / 297.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.006023, allocations: 3.984 kB / 297.6 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-05/0.006068, allocations: 19.98 kB / 297.6 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.05e-05/0.006078, allocations: 11.89 kB / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.00608, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.006084, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.006085, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.006088, allocations: 4 kB / 297.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.006198, allocations: 159.5 kB / 297.8 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.006211, allocations: 7.922 kB / 297.8 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.432e-05/0.006265, allocations: 15.98 kB / 297.8 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.006299, allocations: 11.98 kB / 297.8 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.006303, allocations: 4 kB / 297.8 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.413e-05/0.006327, allocations: 31.23 kB / 297.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.006327, allocations: 0 / 297.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001349/0.006462, allocations: 23.89 kB / 297.8 MB, free: 0.8008 MB / 282.7 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 8.453e-05/0.006546, allocations: 77.41 kB / 297.9 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.866e-05/0.006645, allocations: 44.75 kB / 298 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.006652, allocations: 4 kB / 298 MB, free: 0.668 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.865e-05/0.006681, allocations: 20.8 kB / 298 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.006859, allocations: 36.09 kB / 298 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004183/0.007277, allocations: 200.7 kB / 298.2 MB, free: 400 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.576e-05/0.007323, allocations: 63.34 kB / 298.3 MB, free: 316 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.661e-05/0.00737, allocations: 9.203 kB / 298.3 MB, free: 304 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.123e-05/0.007461, allocations: 79.31 kB / 298.4 MB, free: 224 kB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.007461, allocations: 0 / 298.4 MB, free: 224 kB / 282.7 MB Notification: Performance of Templates: time 0.003242/0.0107, allocations: 1.714 MB / 300.1 MB, free: 14.54 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9119930854067206]