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.001116/0.001116, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001144/0.001144, allocations: 160.5 kB / 24.55 MB, free: 12 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.006/1.006, allocations: 177 MB / 204.8 MB, free: 5.594 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.3129/0.3129, allocations: 34.87 MB / 296.3 MB, free: 0.5469 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.883e-06/1.883e-06, allocations: 0 / 378.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.826e-05/3.015e-05, allocations: 3.297 kB / 378.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003063/0.003093, allocations: 1.738 MB / 380.5 MB, free: 360 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004423/0.003535, allocations: 155.4 kB / 380.6 MB, free: 204 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.583e-05/0.003611, allocations: 4 kB / 380.7 MB, free: 200 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.283e-05/0.003654, allocations: 11.86 kB / 380.7 MB, free: 188 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.749e-05/0.003722, allocations: 11.81 kB / 380.7 MB, free: 176 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.004062, allocations: 107.8 kB / 380.8 MB, free: 68 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.004257, allocations: 111.7 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.004382, allocations: 21.58 kB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.004488, allocations: 55.89 kB / 381 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.646e-05/0.004544, allocations: 31.89 kB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.004572, allocations: 11.94 kB / 381 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.596e-05/0.004588, allocations: 8 kB / 381 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.761e-05/0.004616, allocations: 19.92 kB / 381 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.004657, allocations: 27.92 kB / 381.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.004797, allocations: 75.7 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.004799, allocations: 0 / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.0048, allocations: 8 kB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.004804, allocations: 0 / 381.1 MB, free: 15.7 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.0005673/0.005371, allocations: 452 kB / 381.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.005419, allocations: 12.03 kB / 381.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.869e-05/0.005478, allocations: 12.89 kB / 381.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.005683, allocations: 156.4 kB / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.005695, allocations: 384 / 381.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.005716, allocations: 16.38 kB / 381.8 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.006012, allocations: 203.8 kB / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.006023, allocations: 192 / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.006044, allocations: 384 / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.006053, allocations: 4.375 kB / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.374e-05/0.006146, allocations: 35.86 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000574/0.00672, allocations: 0.5989 MB / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.006881, allocations: 75.03 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.649e-05/0.006928, allocations: 15.72 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.006952, allocations: 4 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.006979, allocations: 41.38 kB / 382.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.006981, allocations: 0 / 382.7 MB, free: 13.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002393/0.00722, allocations: 89.59 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.007267, allocations: 106.8 kB / 382.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.007392, allocations: 193.9 kB / 383.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.007407, allocations: 25.7 kB / 383.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.007488, allocations: 158.8 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.007507, allocations: 23.8 kB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.007565, allocations: 39.36 kB / 383.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.007696, allocations: 0.4884 MB / 383.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.933e-05/0.007735, allocations: 12 kB / 383.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.143e-05/0.007827, allocations: 117.8 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.244e-05/0.007909, allocations: 58.92 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007911, allocations: 0 / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001473/0.008059, allocations: 77.58 kB / 384.1 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.008073, allocations: 12.09 kB / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.008077, allocations: 0 / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.008092, allocations: 0 / 384.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.619e-05/0.008179, allocations: 27.91 kB / 384.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.008183, allocations: 0 / 384.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.376e-05/0.008237, allocations: 23.94 kB / 384.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.008244, allocations: 4 kB / 384.2 MB, free: 12.35 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.883e-05/0.008313, allocations: 164.5 kB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.008334, allocations: 11.95 kB / 384.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.799e-05/0.008362, allocations: 20.7 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.008363, allocations: 0 / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.008366, allocations: 4 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.008369, allocations: 0 / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.00848, allocations: 152.5 kB / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.00848, allocations: 0 / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.008516, allocations: 15.98 kB / 384.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.008517, allocations: 0 / 384.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.008525, allocations: 7.938 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.008526, allocations: 3.984 kB / 384.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.008527, allocations: 8 kB / 384.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.008645, allocations: 216.2 kB / 384.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-06/0.008654, allocations: 11.91 kB / 384.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.008665, allocations: 0 / 384.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.866e-05/0.008724, allocations: 23.97 kB / 384.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.008761, allocations: 11.97 kB / 384.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.008766, allocations: 4 kB / 384.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.369e-05/0.008809, allocations: 146.3 kB / 385 MB, free: 11.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008809, allocations: 0 / 385 MB, free: 11.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001484/0.008958, allocations: 12 kB / 385 MB, free: 11.49 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.315e-05/0.009021, allocations: 103.2 kB / 385.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001137/0.009135, allocations: 55.7 kB / 385.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.009136, allocations: 0 / 385.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.841e-05/0.009174, allocations: 35.61 kB / 385.2 MB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.009374, allocations: 27.86 kB / 385.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002951/0.009669, allocations: 197.9 kB / 385.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.398e-05/0.009703, allocations: 63.47 kB / 385.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.059e-05/0.009733, allocations: 16.72 kB / 385.5 MB, free: 10.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.209e-05/0.009765, allocations: 16.5 kB / 385.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.009766, allocations: 0 / 385.5 MB, free: 10.92 MB / 362.7 MB Notification: Performance of Templates: time 0.002637/0.0124, allocations: 1.54 MB / 387 MB, free: 9.402 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.265272051561624]