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.001027/0.001027, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009541/0.0009541, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9599/0.9599, allocations: 177.1 MB / 205 MB, free: 5.629 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.2516/0.2516, allocations: 34.26 MB / 295.7 MB, free: 0.7383 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 1.703e-06/1.703e-06, allocations: 0 / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.794e-05, allocations: 13.48 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002919/0.002947, allocations: 1.737 MB / 379.8 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004784/0.003426, allocations: 155.5 kB / 379.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.721e-05/0.003513, allocations: 11.94 kB / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.13e-05/0.003554, allocations: 11.81 kB / 379.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.272e-05/0.003617, allocations: 7.875 kB / 380 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.003993, allocations: 107.8 kB / 380.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.004169, allocations: 103.8 kB / 380.2 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.004308, allocations: 29.47 kB / 380.2 MB, free: 484 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.00442, allocations: 55.89 kB / 380.2 MB, free: 428 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.426e-05/0.004475, allocations: 31.89 kB / 380.3 MB, free: 396 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.004503, allocations: 8 kB / 380.3 MB, free: 388 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.004521, allocations: 8 kB / 380.3 MB, free: 380 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.825e-05/0.004549, allocations: 23.92 kB / 380.3 MB, free: 356 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.004592, allocations: 31.91 kB / 380.3 MB, free: 324 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.004728, allocations: 75.66 kB / 380.4 MB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.004732, allocations: 4 kB / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.004733, allocations: 0 / 380.4 MB, free: 244 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.004737, allocations: 0 / 380.4 MB, free: 244 kB / 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.0004712/0.005208, allocations: 444.2 kB / 380.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.005244, allocations: 12.03 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.005287, allocations: 16.89 kB / 380.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.00545, allocations: 158.2 kB / 381 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.00546, allocations: 4.375 kB / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.005478, allocations: 8.375 kB / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002379/0.005716, allocations: 196.7 kB / 381.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.005727, allocations: 4.125 kB / 381.2 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.005742, allocations: 4.375 kB / 381.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.005751, allocations: 4.375 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.617e-05/0.005827, allocations: 43.84 kB / 381.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.006407, allocations: 0.5872 MB / 381.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.006562, allocations: 79 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.988e-05/0.006602, allocations: 15.72 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.006629, allocations: 4 kB / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.006659, allocations: 41.33 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.006661, allocations: 4 kB / 382 MB, free: 14.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002031/0.006864, allocations: 81.81 kB / 382.1 MB, free: 14.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.00691, allocations: 110.8 kB / 382.2 MB, free: 14.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.449e-05/0.007005, allocations: 196.6 kB / 382.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.007018, allocations: 25.7 kB / 382.4 MB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.216e-05/0.00708, allocations: 154.9 kB / 382.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.007094, allocations: 23.78 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.007134, allocations: 39.36 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.007242, allocations: 0.4884 MB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.848e-05/0.00727, allocations: 11.94 kB / 383.1 MB, free: 13.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.815e-05/0.007338, allocations: 113.8 kB / 383.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.296e-05/0.007401, allocations: 71.08 kB / 383.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.007403, allocations: 0 / 383.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001059/0.007509, allocations: 77.58 kB / 383.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.007523, allocations: 8 kB / 383.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.007528, allocations: 0 / 383.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.007541, allocations: 0 / 383.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.264e-05/0.007624, allocations: 19.98 kB / 383.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.007629, allocations: 0 / 383.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.691e-05/0.007686, allocations: 31.98 kB / 383.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.007693, allocations: 7.984 kB / 383.5 MB, free: 12.89 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 7.898e-05/0.007772, allocations: 168.5 kB / 383.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.007795, allocations: 11.95 kB / 383.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.007825, allocations: 12.78 kB / 383.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.007828, allocations: 3.984 kB / 383.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.007831, allocations: 4 kB / 383.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.007834, allocations: 0 / 383.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.007948, allocations: 156.4 kB / 383.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.007949, allocations: 0 / 383.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.778e-05/0.007986, allocations: 19.98 kB / 383.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.007988, allocations: 0 / 383.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.007996, allocations: 4 kB / 383.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.007998, allocations: 4 kB / 383.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.007999, allocations: 0 / 383.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001297/0.008128, allocations: 223.8 kB / 384.1 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-06/0.008137, allocations: 11.91 kB / 384.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.008149, allocations: 0 / 384.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.819e-05/0.008207, allocations: 19.98 kB / 384.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.008247, allocations: 11.98 kB / 384.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.008251, allocations: 7.984 kB / 384.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.809e-05/0.008299, allocations: 143.2 kB / 384.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0083, allocations: 0 / 384.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.008448, allocations: 12 kB / 384.3 MB, free: 12.02 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 6.468e-05/0.008513, allocations: 95.25 kB / 384.4 MB, free: 11.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.008635, allocations: 51.59 kB / 384.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.008636, allocations: 0 / 384.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.431e-05/0.00868, allocations: 31.67 kB / 384.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.0089, allocations: 28.05 kB / 384.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.009273, allocations: 201.8 kB / 384.7 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.603e-05/0.009319, allocations: 63.34 kB / 384.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.909e-05/0.009358, allocations: 17.17 kB / 384.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.901e-05/0.009397, allocations: 16.5 kB / 384.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.009398, allocations: 0 / 384.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of Templates: time 0.002963/0.01236, allocations: 1.557 MB / 386.3 MB, free: 9.938 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.1934397937729955]