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.0009767/0.0009767, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001018/0.001018, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 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.9333/0.9333, allocations: 177 MB / 205.1 MB, free: 5.496 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.2501/0.2501, allocations: 34.87 MB / 296.6 MB, free: 0.5039 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.694e-06/1.694e-06, allocations: 0 / 379.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.27e-05/2.44e-05, allocations: 2.312 kB / 379.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003088/0.003112, allocations: 1.738 MB / 381 MB, free: 100 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005995/0.003712, allocations: 159.6 kB / 381.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.00382, allocations: 11.94 kB / 381.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 4.236e-05/0.003862, allocations: 7.875 kB / 381.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.641e-05/0.003939, allocations: 7.875 kB / 381.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004109/0.00435, allocations: 107.8 kB / 381.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.004493, allocations: 95.77 kB / 381.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.004621, allocations: 25.56 kB / 381.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.921e-05/0.004711, allocations: 59.89 kB / 381.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.399e-05/0.004755, allocations: 31.89 kB / 381.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.004777, allocations: 8 kB / 381.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.299e-05/0.00479, allocations: 12 kB / 381.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.004812, allocations: 23.92 kB / 381.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.603e-05/0.004838, allocations: 27.91 kB / 381.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.004952, allocations: 79.61 kB / 381.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.004956, allocations: 0 / 381.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.004957, allocations: 0 / 381.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.317e-06/0.00496, allocations: 0 / 381.6 MB, free: 15.45 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.0004343/0.005395, allocations: 455.9 kB / 382 MB, free: 14.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.00543, allocations: 12.03 kB / 382.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.005463, allocations: 16.89 kB / 382.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.005605, allocations: 152.4 kB / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.005612, allocations: 384 / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.005626, allocations: 12.38 kB / 382.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.005826, allocations: 192.7 kB / 382.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.005834, allocations: 4.188 kB / 382.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.005845, allocations: 4.375 kB / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.005849, allocations: 384 / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.406e-05/0.005893, allocations: 35.84 kB / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003782/0.006272, allocations: 0.5722 MB / 383 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.76e-05/0.006369, allocations: 66.97 kB / 383.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.277e-05/0.006392, allocations: 15.72 kB / 383.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.006413, allocations: 7.984 kB / 383.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.006434, allocations: 37.33 kB / 383.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.103e-06/0.006435, allocations: 0 / 383.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001471/0.006582, allocations: 89.64 kB / 383.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.006628, allocations: 106.8 kB / 383.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/0.006716, allocations: 189.9 kB / 383.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.006728, allocations: 25.7 kB / 383.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.706e-05/0.006795, allocations: 158.8 kB / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.006811, allocations: 27.78 kB / 383.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.006849, allocations: 35.36 kB / 383.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.006962, allocations: 0.4884 MB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.042e-05/0.006982, allocations: 8 kB / 384.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-05/0.007045, allocations: 117.7 kB / 384.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.007099, allocations: 55.06 kB / 384.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.007101, allocations: 0 / 384.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.617e-05/0.007197, allocations: 85.45 kB / 384.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.007211, allocations: 7.125 kB / 384.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.007215, allocations: 3.938 kB / 384.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.007228, allocations: 4 kB / 384.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.007299, allocations: 15.98 kB / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.007302, allocations: 3.984 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.178e-05/0.007354, allocations: 24 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.007361, allocations: 8 kB / 384.6 MB, free: 12.15 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.074e-05/0.007432, allocations: 156.6 kB / 384.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.007454, allocations: 19.89 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/0.007483, allocations: 12.72 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.007485, allocations: 3.984 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.007487, allocations: 4 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.00749, allocations: 0 / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.007602, allocations: 129.2 kB / 384.9 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.007604, allocations: 4 kB / 384.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.765e-05/0.007641, allocations: 11.98 kB / 384.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.007647, allocations: 7.938 kB / 384.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.007654, allocations: 3.984 kB / 384.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.007655, allocations: 0 / 384.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.007656, allocations: 0 / 384.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.007773, allocations: 216.3 kB / 385.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-06/0.007782, allocations: 11.91 kB / 385.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.007794, allocations: 7.875 kB / 385.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.922e-05/0.007853, allocations: 23.97 kB / 385.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.007884, allocations: 11.98 kB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.007887, allocations: 0 / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.421e-05/0.007931, allocations: 142.6 kB / 385.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007931, allocations: 0 / 385.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001531/0.008085, allocations: 16 kB / 385.4 MB, free: 11.33 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 8.617e-05/0.008171, allocations: 99.23 kB / 385.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.31e-05/0.008264, allocations: 47.66 kB / 385.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.008265, allocations: 0 / 385.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.984e-05/0.008295, allocations: 27.8 kB / 385.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.008495, allocations: 30.38 kB / 385.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005852/0.009081, allocations: 205.8 kB / 385.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.833e-05/0.009119, allocations: 67.28 kB / 385.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.804e-05/0.009157, allocations: 12.72 kB / 385.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.45e-05/0.009252, allocations: 94.17 kB / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009252, allocations: 0 / 385.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of Templates: time 0.003099/0.01235, allocations: 1.703 MB / 387.6 MB, free: 9.016 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: 2.8941266592592]