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.001088/0.001088, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001784/0.002872, allocations: 449.8 kB / 10.44 MB, free: 252 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.001119/0.001119, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001569/0.002688, allocations: 479.5 kB / 11.82 MB, free: 2.344 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 0.986/0.986, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09628/1.082, allocations: 53.66 MB / 243.4 MB, free: 15.51 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.278/0.278, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02414/0.3022, allocations: 13.11 MB / 291.5 MB, free: 7.328 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 2.465e-06/2.465e-06, allocations: 0 / 292.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.139e-05, allocations: 2.312 kB / 292.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003301/0.003332, allocations: 1.796 MB / 294.6 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003843/0.003716, allocations: 167.3 kB / 294.8 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.53e-05/0.003802, allocations: 3.938 kB / 294.8 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.531e-05/0.003837, allocations: 7.875 kB / 294.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.717e-05/0.003884, allocations: 19.8 kB / 294.8 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.004164, allocations: 99.8 kB / 294.9 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.004328, allocations: 103.8 kB / 295 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.004452, allocations: 30.16 kB / 295 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.004581, allocations: 71.88 kB / 295.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.369e-05/0.004645, allocations: 31.91 kB / 295.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.686e-05/0.004681, allocations: 8 kB / 295.1 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/0.004703, allocations: 8 kB / 295.2 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.004731, allocations: 15.94 kB / 295.2 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.326e-05/0.004764, allocations: 19.94 kB / 295.2 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.0049, allocations: 67.69 kB / 295.3 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.004911, allocations: 0 / 295.3 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.004912, allocations: 0 / 295.3 MB, free: 3.762 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.004921, allocations: 0 / 295.3 MB, free: 3.762 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.0005027/0.005424, allocations: 345.3 kB / 295.6 MB, free: 3.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.00546, allocations: 12.61 kB / 295.6 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.005508, allocations: 12.94 kB / 295.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.005694, allocations: 139.2 kB / 295.8 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.005705, allocations: 4.375 kB / 295.8 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.005725, allocations: 8.375 kB / 295.8 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.005971, allocations: 195.4 kB / 296 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.005979, allocations: 192 / 296 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.005992, allocations: 4.375 kB / 296 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.006, allocations: 4.375 kB / 296 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.555e-05/0.006056, allocations: 25.75 kB / 296 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000424/0.00648, allocations: 392.3 kB / 296.4 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.00661, allocations: 54.58 kB / 296.4 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.733e-05/0.006648, allocations: 24.73 kB / 296.5 MB, free: 2.449 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.006666, allocations: 4 kB / 296.5 MB, free: 2.445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.006693, allocations: 38.55 kB / 296.5 MB, free: 2.398 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.006694, allocations: 0 / 296.5 MB, free: 2.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001651/0.006859, allocations: 61.91 kB / 296.6 MB, free: 2.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.006892, allocations: 59.39 kB / 296.6 MB, free: 2.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.27e-05/0.006984, allocations: 130.7 kB / 296.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.007002, allocations: 29.7 kB / 296.8 MB, free: 2.086 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.007059, allocations: 108.1 kB / 296.9 MB, free: 1.977 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.007076, allocations: 19.84 kB / 296.9 MB, free: 1.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.007124, allocations: 25.7 kB / 296.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.579e-05/0.00722, allocations: 326.8 kB / 297.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.365e-05/0.007243, allocations: 11.88 kB / 297.3 MB, free: 1.586 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.893e-05/0.007312, allocations: 99.67 kB / 297.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.767e-05/0.00738, allocations: 54.53 kB / 297.4 MB, free: 1.398 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.007383, allocations: 0 / 297.4 MB, free: 1.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001124/0.007495, allocations: 65.55 kB / 297.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.007511, allocations: 9.719 kB / 297.5 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.007516, allocations: 0 / 297.5 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.00753, allocations: 4.094 kB / 297.5 MB, free: 1.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.007643, allocations: 19.98 kB / 297.5 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.007648, allocations: 4 kB / 297.5 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.856e-05/0.007727, allocations: 31.86 kB / 297.5 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.007734, allocations: 0 / 297.5 MB, free: 1.262 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 7.994e-05/0.007814, allocations: 117.8 kB / 297.6 MB, free: 1.137 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.007848, allocations: 15.92 kB / 297.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.00788, allocations: 8.781 kB / 297.7 MB, free: 1.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.007883, allocations: 4 kB / 297.7 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.007885, allocations: 4 kB / 297.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.007888, allocations: 0 / 297.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.008036, allocations: 97.84 kB / 297.8 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.008039, allocations: 4 kB / 297.8 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.678e-05/0.008106, allocations: 15.98 kB / 297.8 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.008119, allocations: 11.89 kB / 297.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.008122, allocations: 0 / 297.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.008129, allocations: 0 / 297.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.008131, allocations: 0 / 297.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.008132, allocations: 0 / 297.8 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.008265, allocations: 163.5 kB / 298 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.008282, allocations: 7.938 kB / 298 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.272e-05/0.008375, allocations: 11.98 kB / 298 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/0.008415, allocations: 15.97 kB / 298 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.00842, allocations: 0 / 298 MB, free: 0.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.603e-05/0.008456, allocations: 35.23 kB / 298 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008456, allocations: 0 / 298 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.008677, allocations: 19.89 kB / 298.1 MB, free: 0.6953 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 9.93e-05/0.008776, allocations: 86.38 kB / 298.1 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.008888, allocations: 44.77 kB / 298.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.008895, allocations: 4 kB / 298.2 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.175e-05/0.008947, allocations: 28.78 kB / 298.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.009218, allocations: 109.1 kB / 298.3 MB, free: 408 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005522/0.009771, allocations: 209.3 kB / 298.5 MB, free: 176 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.382e-05/0.009814, allocations: 63.34 kB / 298.6 MB, free: 92 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.542e-05/0.00987, allocations: 12.84 kB / 298.6 MB, free: 76 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.01001, allocations: 79.39 kB / 298.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01001, allocations: 0 / 298.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of Templates: time 0.003977/0.01398, allocations: 1.685 MB / 300.4 MB, free: 14.34 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7207900220528245]