Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002591/0.002591, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002966/0.002966, allocations: 160.8 kB / 24.27 MB, free: 160 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3439/0.3439, allocations: 34.25 MB / 295.2 MB, free: 0.6367 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.765e-05/2.948e-05, allocations: 2.312 kB / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003128/0.003157, allocations: 1.711 MB / 378.9 MB, free: 1.199 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004775/0.003635, allocations: 151.5 kB / 379.1 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.613e-05/0.003711, allocations: 0 / 379.1 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.003749, allocations: 15.86 kB / 379.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-05/0.003818, allocations: 19.75 kB / 379.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.004189, allocations: 103.8 kB / 379.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.00439, allocations: 111.7 kB / 379.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.00453, allocations: 29.42 kB / 379.3 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.004653, allocations: 55.89 kB / 379.4 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.004713, allocations: 31.91 kB / 379.4 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.004742, allocations: 8 kB / 379.4 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.457e-05/0.004767, allocations: 8 kB / 379.4 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.004816, allocations: 23.91 kB / 379.5 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.823e-05/0.004864, allocations: 23.92 kB / 379.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.005041, allocations: 103.7 kB / 379.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.005046, allocations: 4 kB / 379.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005047, allocations: 0 / 379.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.005052, allocations: 0 / 379.6 MB, free: 0.5195 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.0009933/0.006045, allocations: 455.8 kB / 380 MB, free: 36 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.006083, allocations: 12.02 kB / 380 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.006142, allocations: 12.89 kB / 380.1 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.00641, allocations: 152.4 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.006424, allocations: 4.375 kB / 380.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.006443, allocations: 8.375 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.006832, allocations: 206.8 kB / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.006841, allocations: 192 / 380.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.006859, allocations: 12.31 kB / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.006864, allocations: 384 / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.007153, allocations: 91.81 kB / 380.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000798/0.007951, allocations: 0.6106 MB / 381.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.008294, allocations: 115 kB / 381.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.008433, allocations: 47.69 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.00846, allocations: 4 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.008497, allocations: 37.39 kB / 381.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.008498, allocations: 0 / 381.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005403/0.009038, allocations: 153.6 kB / 381.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.009122, allocations: 110.8 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.009307, allocations: 208.9 kB / 381.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.009335, allocations: 29.7 kB / 381.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.00945, allocations: 158.8 kB / 382 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.00948, allocations: 23.8 kB / 382 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.009552, allocations: 43.36 kB / 382 MB, free: 13.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/0.009818, allocations: 0.4923 MB / 382.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.00995, allocations: 31.98 kB / 382.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.01017, allocations: 145.8 kB / 382.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.01049, allocations: 95.2 kB / 382.8 MB, free: 13.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.0105, allocations: 4.031 kB / 382.8 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000351/0.01085, allocations: 133.5 kB / 382.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.01087, allocations: 7.984 kB / 382.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.01087, allocations: 0 / 382.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.01089, allocations: 4 kB / 382.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.01101, allocations: 19.92 kB / 383 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.01102, allocations: 0 / 383 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.01113, allocations: 24 kB / 383 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.01115, allocations: 4 kB / 383 MB, free: 12.81 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 0.0001425/0.01129, allocations: 172.5 kB / 383.2 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.01132, allocations: 7.953 kB / 383.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.638e-05/0.01137, allocations: 16.77 kB / 383.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01137, allocations: 0 / 383.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01138, allocations: 0 / 383.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.01138, allocations: 0 / 383.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.01161, allocations: 164.5 kB / 383.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.01161, allocations: 3.938 kB / 383.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.167e-05/0.0117, allocations: 23.92 kB / 383.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.01171, allocations: 0 / 383.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.01173, allocations: 7.984 kB / 383.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.01174, allocations: 4 kB / 383.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01174, allocations: 0 / 383.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005294/0.01227, allocations: 263.8 kB / 383.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.149e-05/0.01229, allocations: 15.88 kB / 383.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.01231, allocations: 4 kB / 383.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.01244, allocations: 19.98 kB / 383.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.01251, allocations: 11.98 kB / 383.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.01252, allocations: 0 / 383.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001127/0.01263, allocations: 155.1 kB / 383.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01263, allocations: 0 / 383.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000234/0.01286, allocations: 20 kB / 383.9 MB, free: 11.87 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 0.0001213/0.01298, allocations: 95.19 kB / 384 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000354/0.01334, allocations: 103.6 kB / 384.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.01334, allocations: 0 / 384.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.01351, allocations: 59.59 kB / 384.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.01383, allocations: 30.31 kB / 384.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.01436, allocations: 213.9 kB / 384.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.01447, allocations: 89.56 kB / 384.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.627e-05/0.01453, allocations: 8.734 kB / 384.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.01458, allocations: 24.48 kB / 384.5 MB, free: 11.19 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01458, allocations: 0 / 384.5 MB, free: 11.19 MB / 362.7 MB Notification: Performance of Templates: time 0.004838/0.01942, allocations: 1.542 MB / 386 MB, free: 9.672 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.798317590961233]