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.001348/0.001348, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001497/0.001497, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9931/0.9931, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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.2968/0.2968, allocations: 34.87 MB / 296.3 MB, free: 0.5273 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.462e-06/1.462e-06, allocations: 0 / 378.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.971e-05, allocations: 2.312 kB / 378.8 MB, free: 2.082 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.00213/0.00215, allocations: 1.735 MB / 380.5 MB, free: 340 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004219/0.002572, allocations: 163.4 kB / 380.6 MB, free: 176 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.647e-05/0.002648, allocations: 4 kB / 380.7 MB, free: 172 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.002684, allocations: 11.86 kB / 380.7 MB, free: 160 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.501e-05/0.002749, allocations: 11.88 kB / 380.7 MB, free: 148 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.003074, allocations: 103.8 kB / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.00326, allocations: 107.8 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.003394, allocations: 25.56 kB / 380.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.02e-05/0.003484, allocations: 51.91 kB / 381 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.872e-05/0.003533, allocations: 31.89 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.003559, allocations: 12 kB / 381 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.216e-05/0.003571, allocations: 8 kB / 381 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.003598, allocations: 23.92 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.382e-05/0.003632, allocations: 31.91 kB / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.003756, allocations: 75.66 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.003759, allocations: 0 / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.003759, allocations: 0 / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.003763, allocations: 0 / 381.1 MB, free: 15.68 MB / 362.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.0004656/0.004229, allocations: 452.1 kB / 381.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.004268, allocations: 8.031 kB / 381.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/0.004321, allocations: 16.89 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.004501, allocations: 166.9 kB / 381.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.004514, allocations: 8.375 kB / 381.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.004529, allocations: 8.375 kB / 381.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.004772, allocations: 200.7 kB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.004781, allocations: 4.188 kB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.004794, allocations: 384 / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.004803, allocations: 384 / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.835e-05/0.004871, allocations: 35.92 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005037/0.005375, allocations: 0.6028 MB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.005508, allocations: 74.97 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.741e-05/0.005546, allocations: 15.72 kB / 382.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.005565, allocations: 0 / 382.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.005592, allocations: 45.38 kB / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.005594, allocations: 0 / 382.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002226/0.005816, allocations: 81.59 kB / 382.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.005869, allocations: 110.8 kB / 382.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.005964, allocations: 197 kB / 383.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.005978, allocations: 29.7 kB / 383.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.00604, allocations: 154.8 kB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.006056, allocations: 23.8 kB / 383.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.006095, allocations: 35.36 kB / 383.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.006199, allocations: 0.4923 MB / 383.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.871e-05/0.006228, allocations: 8 kB / 383.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.714e-05/0.006295, allocations: 109.9 kB / 384 MB, free: 12.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.842e-05/0.006364, allocations: 66.94 kB / 384 MB, free: 12.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.006366, allocations: 0 / 384 MB, free: 12.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001043/0.00647, allocations: 81.58 kB / 384.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.006483, allocations: 4 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.006488, allocations: 0 / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.006501, allocations: 4 kB / 384.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.485e-05/0.006586, allocations: 19.97 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.006593, allocations: 4 kB / 384.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.413e-05/0.006647, allocations: 28 kB / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-06/0.006653, allocations: 0 / 384.2 MB, free: 12.33 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.436e-05/0.006727, allocations: 168.5 kB / 384.3 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.006749, allocations: 11.95 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.006778, allocations: 20.7 kB / 384.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.00678, allocations: 0 / 384.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.006784, allocations: 0 / 384.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.006787, allocations: 0 / 384.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.006904, allocations: 152.5 kB / 384.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.006905, allocations: 4 kB / 384.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.712e-05/0.006942, allocations: 15.98 kB / 384.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.006946, allocations: 4 kB / 384.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.006953, allocations: 4 kB / 384.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.006955, allocations: 0 / 384.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.006957, allocations: 3.984 kB / 384.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001291/0.007086, allocations: 224.2 kB / 384.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.035e-05/0.007096, allocations: 11.91 kB / 384.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.007109, allocations: 4 kB / 384.8 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.503e-05/0.007164, allocations: 11.98 kB / 384.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.00721, allocations: 19.95 kB / 384.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.007217, allocations: 12 kB / 384.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.518e-05/0.007262, allocations: 139.2 kB / 385 MB, free: 11.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007262, allocations: 0 / 385 MB, free: 11.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001514/0.007413, allocations: 16 kB / 385 MB, free: 11.46 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.546e-05/0.007479, allocations: 91.25 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.007602, allocations: 55.84 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.007605, allocations: 4 kB / 385.1 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.697e-05/0.007642, allocations: 35.61 kB / 385.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.007843, allocations: 31.98 kB / 385.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003196/0.008162, allocations: 193.9 kB / 385.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.698e-05/0.008199, allocations: 67.33 kB / 385.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.581e-05/0.008235, allocations: 12.72 kB / 385.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.481e-05/0.00827, allocations: 16.5 kB / 385.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.008271, allocations: 4 kB / 385.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of Templates: time 0.003037/0.01131, allocations: 1.679 MB / 387.2 MB, free: 9.234 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","",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.1377840689383447]