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.0009889/0.0009889, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0009958/0.0009958, allocations: 165 kB / 24.91 MB, free: 9.188 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 1.035/1.035, allocations: 177 MB / 205.2 MB, free: 5.469 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.3037/0.3037, allocations: 34.86 MB / 296.6 MB, free: 468 kB / 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.663e-06/1.663e-06, allocations: 0 / 325.9 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.783e-05/2.95e-05, allocations: 4.062 kB / 325.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003502/0.003532, allocations: 1.787 MB / 327.7 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000471/0.004003, allocations: 159.4 kB / 327.9 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.462e-05/0.004087, allocations: 0 / 327.9 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.042e-05/0.004128, allocations: 15.81 kB / 327.9 MB, free: 5.152 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.004204, allocations: 19.84 kB / 327.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.004552, allocations: 95.81 kB / 328 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.004748, allocations: 116.3 kB / 328.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.00487, allocations: 30.16 kB / 328.2 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.004988, allocations: 55.89 kB / 328.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.258e-05/0.00505, allocations: 31.89 kB / 328.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.005077, allocations: 12 kB / 328.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.005094, allocations: 8 kB / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.005123, allocations: 19.92 kB / 328.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.005156, allocations: 27.92 kB / 328.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.005293, allocations: 75.77 kB / 328.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.005296, allocations: 0 / 328.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.005297, allocations: 3.938 kB / 328.4 MB, free: 4.664 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.005302, allocations: 0 / 328.4 MB, free: 4.664 MB / 298.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.0004834/0.005785, allocations: 321.9 kB / 328.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.005822, allocations: 8.031 kB / 328.7 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.005864, allocations: 16.92 kB / 328.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.006058, allocations: 133.7 kB / 328.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.006071, allocations: 8.375 kB / 328.9 MB, free: 4.137 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.006087, allocations: 8.312 kB / 328.9 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.006351, allocations: 187.3 kB / 329.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.00636, allocations: 192 / 329.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.006374, allocations: 4.375 kB / 329.1 MB, free: 3.906 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.006382, allocations: 4.375 kB / 329.1 MB, free: 3.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.921e-05/0.006451, allocations: 35.78 kB / 329.1 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004974/0.006949, allocations: 392.4 kB / 329.5 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.007064, allocations: 58.58 kB / 329.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.514e-05/0.007089, allocations: 20.73 kB / 329.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.007105, allocations: 0 / 329.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.00713, allocations: 34.56 kB / 329.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.007131, allocations: 0 / 329.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001497/0.007281, allocations: 73.59 kB / 329.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.00732, allocations: 102.8 kB / 329.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.132e-05/0.007392, allocations: 147 kB / 329.9 MB, free: 2.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.007404, allocations: 29.7 kB / 329.9 MB, free: 2.938 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.515e-05/0.007449, allocations: 104.6 kB / 330 MB, free: 2.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.295e-05/0.007462, allocations: 23.78 kB / 330.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.007498, allocations: 29.7 kB / 330.1 MB, free: 2.773 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.007573, allocations: 326.8 kB / 330.4 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.00759, allocations: 4 kB / 330.4 MB, free: 2.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.538e-05/0.007645, allocations: 99.19 kB / 330.5 MB, free: 2.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.646e-05/0.007692, allocations: 38.55 kB / 330.6 MB, free: 2.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.007695, allocations: 8.031 kB / 330.6 MB, free: 2.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.008e-05/0.007775, allocations: 69.55 kB / 330.6 MB, free: 2.191 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.007789, allocations: 11.98 kB / 330.6 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.007793, allocations: 0 / 330.6 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.007805, allocations: 0 / 330.6 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.256e-05/0.007887, allocations: 23.92 kB / 330.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.00789, allocations: 400 / 330.7 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.253e-05/0.007943, allocations: 19.94 kB / 330.7 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.007949, allocations: 8.062 kB / 330.7 MB, free: 2.129 MB / 298.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.516e-05/0.008014, allocations: 117.8 kB / 330.8 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.959e-05/0.008034, allocations: 7.938 kB / 330.8 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.008062, allocations: 16.78 kB / 330.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.008066, allocations: 3.984 kB / 330.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.008067, allocations: 0 / 330.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.00807, allocations: 0 / 330.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.008176, allocations: 94.55 kB / 330.9 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.008177, allocations: 0 / 330.9 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.292e-05/0.00822, allocations: 23.92 kB / 330.9 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.008223, allocations: 7.984 kB / 331 MB, free: 1.832 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-06/0.00823, allocations: 3.938 kB / 331 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.00823, allocations: 0 / 331 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.008233, allocations: 11.92 kB / 331 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.92e-05/0.008332, allocations: 151.5 kB / 331.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-06/0.008339, allocations: 3.953 kB / 331.1 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.008352, allocations: 7.938 kB / 331.1 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.768e-05/0.008409, allocations: 15.98 kB / 331.1 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.008443, allocations: 11.97 kB / 331.2 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.00845, allocations: 8 kB / 331.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.335e-05/0.008473, allocations: 28.83 kB / 331.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008473, allocations: 0 / 331.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001299/0.008603, allocations: 23.95 kB / 331.2 MB, free: 1.551 MB / 298.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 9.271e-05/0.008696, allocations: 72.36 kB / 331.3 MB, free: 1.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.692e-05/0.008793, allocations: 40.83 kB / 331.3 MB, free: 1.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.008796, allocations: 3.938 kB / 331.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.938e-05/0.008825, allocations: 24.84 kB / 331.4 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000175/0.009, allocations: 24.75 kB / 331.4 MB, free: 1.375 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.00931, allocations: 205.1 kB / 331.6 MB, free: 1.148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.595e-05/0.009346, allocations: 63.34 kB / 331.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.715e-05/0.009383, allocations: 12.72 kB / 331.7 MB, free: 1.051 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/0.009468, allocations: 71.36 kB / 331.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.009469, allocations: 0 / 331.7 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of Templates: time 0.003299/0.01277, allocations: 1.645 MB / 333.4 MB, free: 15.38 MB / 314.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 -s gbode -gbm=radauIIA3 -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.0346931321546435]