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.001044/0.001044, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0013/0.0013, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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.14/1.14, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.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.2688/0.2688, allocations: 34.26 MB / 296.1 MB, free: 0.6875 MB / 266.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 2.284e-06/2.284e-06, allocations: 0 / 325.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.323e-05/2.552e-05, allocations: 3.922 kB / 325.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002296/0.002322, allocations: 1.791 MB / 327.1 MB, free: 5.887 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005568/0.002879, allocations: 167.3 kB / 327.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.002975, allocations: 4 kB / 327.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.494e-05/0.00302, allocations: 7.875 kB / 327.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.418e-05/0.003094, allocations: 11.88 kB / 327.3 MB, free: 5.699 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.003483, allocations: 103.8 kB / 327.4 MB, free: 5.598 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.003689, allocations: 107.7 kB / 327.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.003825, allocations: 22.22 kB / 327.5 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.003953, allocations: 63.89 kB / 327.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.772e-05/0.00402, allocations: 31.89 kB / 327.6 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.004051, allocations: 8 kB / 327.6 MB, free: 5.367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.705e-05/0.004068, allocations: 8 kB / 327.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.311e-05/0.004102, allocations: 23.91 kB / 327.6 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.224e-05/0.004144, allocations: 24.55 kB / 327.6 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.004306, allocations: 79.67 kB / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.004308, allocations: 0 / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.004309, allocations: 0 / 327.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.004314, allocations: 0 / 327.7 MB, free: 5.234 MB / 298.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.0005357/0.00485, allocations: 325.9 kB / 328 MB, free: 4.891 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.004897, allocations: 8.031 kB / 328 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.004947, allocations: 16.92 kB / 328.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.005166, allocations: 145.6 kB / 328.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.005178, allocations: 4.375 kB / 328.2 MB, free: 4.695 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.005195, allocations: 8.375 kB / 328.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.005474, allocations: 181.8 kB / 328.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.005485, allocations: 192 / 328.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.853e-05/0.005503, allocations: 8.375 kB / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.005512, allocations: 384 / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.211e-05/0.005584, allocations: 27.91 kB / 328.4 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000595/0.006179, allocations: 396.4 kB / 328.8 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.006338, allocations: 58.47 kB / 328.9 MB, free: 3.965 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/0.006382, allocations: 24.78 kB / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.006405, allocations: 0 / 328.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.006437, allocations: 42.5 kB / 328.9 MB, free: 3.887 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.784e-06/0.006439, allocations: 0 / 328.9 MB, free: 3.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000197/0.006636, allocations: 65.67 kB / 329 MB, free: 3.816 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.006693, allocations: 102.8 kB / 329.1 MB, free: 3.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/0.006787, allocations: 138.6 kB / 329.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.006804, allocations: 33.64 kB / 329.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.006867, allocations: 108.1 kB / 329.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.006882, allocations: 19.8 kB / 329.4 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.006926, allocations: 29.69 kB / 329.4 MB, free: 3.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.007033, allocations: 322.8 kB / 329.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.898e-05/0.007052, allocations: 4 kB / 329.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/0.007121, allocations: 99.67 kB / 329.8 MB, free: 2.887 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.219e-05/0.007184, allocations: 46.48 kB / 329.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.007187, allocations: 0 / 329.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001045/0.007292, allocations: 73.56 kB / 330 MB, free: 2.754 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.007307, allocations: 8 kB / 330 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.007313, allocations: 400 / 330 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.007331, allocations: 0 / 330 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.331e-05/0.007424, allocations: 23.98 kB / 330 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.007428, allocations: 3.984 kB / 330 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.007484, allocations: 19.94 kB / 330 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.00749, allocations: 4 kB / 330 MB, free: 2.695 MB / 298.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 7.038e-05/0.00756, allocations: 123.2 kB / 330.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.007584, allocations: 11.92 kB / 330.2 MB, free: 2.555 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.344e-05/0.007617, allocations: 12.78 kB / 330.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.00762, allocations: 0 / 330.2 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.007623, allocations: 3.984 kB / 330.2 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.007628, allocations: 4 kB / 330.2 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.00774, allocations: 93.8 kB / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.007742, allocations: 0 / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.615e-05/0.007788, allocations: 15.98 kB / 330.3 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.007791, allocations: 0 / 330.3 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.007799, allocations: 11.94 kB / 330.3 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.007802, allocations: 3.984 kB / 330.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.007803, allocations: 0 / 330.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.007917, allocations: 159.5 kB / 330.5 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.059e-05/0.007927, allocations: 15.88 kB / 330.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.00794, allocations: 3.938 kB / 330.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.007998, allocations: 15.98 kB / 330.5 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.008033, allocations: 11.98 kB / 330.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.008037, allocations: 0 / 330.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.568e-05/0.008062, allocations: 31.41 kB / 330.5 MB, free: 2.141 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008062, allocations: 4 kB / 330.5 MB, free: 2.137 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000134/0.008196, allocations: 19.95 kB / 330.6 MB, free: 2.117 MB / 298.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.646e-05/0.008283, allocations: 80.41 kB / 330.6 MB, free: 2.031 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.008387, allocations: 37.28 kB / 330.7 MB, free: 1.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.008393, allocations: 4 kB / 330.7 MB, free: 1.988 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.7e-05/0.00843, allocations: 24.78 kB / 330.7 MB, free: 1.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.008616, allocations: 33.72 kB / 330.7 MB, free: 1.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.008913, allocations: 204.9 kB / 330.9 MB, free: 1.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.282e-05/0.008956, allocations: 59.34 kB / 331 MB, free: 1.629 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.811e-05/0.008994, allocations: 8.734 kB / 331 MB, free: 1.617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.748e-05/0.009092, allocations: 79.34 kB / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.009093, allocations: 0 / 331.1 MB, free: 1.539 MB / 298.7 MB Notification: Performance of Templates: time 0.003108/0.0122, allocations: 1.636 MB / 332.7 MB, free: 15.92 MB / 314.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 -s gbode -gbm=radauIIA3 -emit_protected -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: 3.0612703589722514]