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.001497/0.001497, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001093/0.001093, allocations: 164.8 kB / 24.99 MB, free: 8.793 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 0.9597/0.9597, allocations: 177.1 MB / 205.3 MB, free: 5.625 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.2609/0.2609, allocations: 34.26 MB / 296 MB, free: 0.7812 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 8.51e-07/8.51e-07, allocations: 0 / 378 MB, free: 3.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.366e-05/1.451e-05, allocations: 6.25 kB / 378 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002004/0.002018, allocations: 1.748 MB / 379.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002973/0.002315, allocations: 163.4 kB / 379.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.606e-05/0.002361, allocations: 0 / 379.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.002383, allocations: 11.88 kB / 379.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.227e-05/0.002415, allocations: 7.875 kB / 379.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.00264, allocations: 95.8 kB / 380 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.002755, allocations: 115.7 kB / 380.1 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.529e-05/0.00283, allocations: 25.48 kB / 380.2 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.294e-05/0.002893, allocations: 63.88 kB / 380.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.169e-05/0.002925, allocations: 27.91 kB / 380.3 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.002941, allocations: 12 kB / 380.3 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.002951, allocations: 8 kB / 380.3 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.832e-05/0.002969, allocations: 23.91 kB / 380.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.002993, allocations: 27.92 kB / 380.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 8.632e-05/0.00308, allocations: 75.66 kB / 380.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.313e-06/0.003081, allocations: 0 / 380.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.003081, allocations: 0 / 380.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.605e-06/0.003084, allocations: 0 / 380.4 MB, free: 0.5859 MB / 346.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.0003599/0.003444, allocations: 456.2 kB / 380.8 MB, free: 104 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.5e-05/0.003469, allocations: 8.031 kB / 380.8 MB, free: 96 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.003499, allocations: 12.89 kB / 380.9 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.003629, allocations: 154.6 kB / 381 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-06/0.003635, allocations: 4.375 kB / 381 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.003646, allocations: 8.375 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.003846, allocations: 208.7 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-06/0.003851, allocations: 192 / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.003862, allocations: 8.359 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.003866, allocations: 384 / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.774e-05/0.003934, allocations: 35.91 kB / 381.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.004319, allocations: 0.5949 MB / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.004439, allocations: 74.97 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.122e-05/0.004471, allocations: 23.64 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.004483, allocations: 8 kB / 382 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.004501, allocations: 37.39 kB / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.004502, allocations: 0 / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001426/0.004645, allocations: 89.88 kB / 382.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.004687, allocations: 106.8 kB / 382.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.004778, allocations: 196.5 kB / 382.4 MB, free: 14.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.004791, allocations: 25.7 kB / 382.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.684e-05/0.004847, allocations: 158.8 kB / 382.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.00486, allocations: 19.8 kB / 382.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.004897, allocations: 35.36 kB / 382.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.005009, allocations: 0.4962 MB / 383.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.673e-05/0.005036, allocations: 11.98 kB / 383.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.059e-05/0.005106, allocations: 109.8 kB / 383.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.178e-05/0.005168, allocations: 59 kB / 383.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.005169, allocations: 0 / 383.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.588e-05/0.005265, allocations: 85.56 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.366e-06/0.005273, allocations: 4 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.005276, allocations: 0 / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.901e-06/0.005282, allocations: 4.094 kB / 383.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.526e-05/0.005347, allocations: 23.98 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.005351, allocations: 4 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.44e-05/0.005406, allocations: 23.94 kB / 383.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.005411, allocations: 3.984 kB / 383.4 MB, free: 13.23 MB / 362.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.695e-05/0.005478, allocations: 168.5 kB / 383.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.005503, allocations: 11.95 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.005526, allocations: 16.78 kB / 383.6 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.005528, allocations: 0 / 383.6 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.00553, allocations: 4 kB / 383.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.005532, allocations: 0 / 383.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.005646, allocations: 156.5 kB / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.005646, allocations: 0 / 383.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.733e-05/0.005684, allocations: 15.98 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.005685, allocations: 4 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.005691, allocations: 0 / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.005691, allocations: 0 / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.005692, allocations: 3.938 kB / 383.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.005815, allocations: 227.8 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-06/0.005824, allocations: 11.91 kB / 384.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.899e-06/0.005834, allocations: 4 kB / 384.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.005895, allocations: 19.98 kB / 384.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/0.005923, allocations: 7.984 kB / 384.1 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.005929, allocations: 4 kB / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.005985, allocations: 145.7 kB / 384.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005985, allocations: 0 / 384.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001553/0.006141, allocations: 20 kB / 384.2 MB, free: 12.36 MB / 362.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 5.291e-05/0.006193, allocations: 91.25 kB / 384.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.486e-05/0.006288, allocations: 59.58 kB / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.72e-07/0.006289, allocations: 0 / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.723e-05/0.006327, allocations: 31.62 kB / 384.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.006505, allocations: 31.84 kB / 384.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002505/0.006756, allocations: 201.9 kB / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.461e-05/0.00679, allocations: 59.34 kB / 384.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.504e-05/0.006825, allocations: 17.3 kB / 384.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.006e-05/0.006855, allocations: 24.48 kB / 384.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.006856, allocations: 0 / 384.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of Templates: time 0.002513/0.009369, allocations: 1.54 MB / 386.3 MB, free: 10.27 MB / 362.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 -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.0438284911215305]