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.001355/0.001355, allocations: 88.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.001177/0.001177, allocations: 165.1 kB / 24.91 MB, free: 8.715 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.9495/0.9495, allocations: 177 MB / 205.2 MB, free: 5.062 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.2443/0.2443, allocations: 34.86 MB / 296.6 MB, free: 476 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.573e-06/1.573e-06, allocations: 0 / 325.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.477e-05, allocations: 9.406 kB / 325.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003182/0.003207, allocations: 1.749 MB / 327.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005728/0.003779, allocations: 163.4 kB / 327.8 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.503e-05/0.003864, allocations: 3.938 kB / 327.8 MB, free: 5.285 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.169e-05/0.003906, allocations: 7.875 kB / 327.8 MB, free: 5.277 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.091e-05/0.003977, allocations: 15.88 kB / 327.8 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.004337, allocations: 103.8 kB / 327.9 MB, free: 5.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.004534, allocations: 104.4 kB / 328 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.004661, allocations: 26.2 kB / 328.1 MB, free: 5.031 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.004776, allocations: 59.89 kB / 328.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.652e-05/0.004832, allocations: 27.89 kB / 328.1 MB, free: 4.945 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.376e-05/0.004866, allocations: 8 kB / 328.2 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.587e-05/0.004882, allocations: 8 kB / 328.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.004909, allocations: 23.92 kB / 328.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.004947, allocations: 31.91 kB / 328.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.005096, allocations: 87.59 kB / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.005099, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.0051, allocations: 0 / 328.3 MB, free: 4.789 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.005104, allocations: 0 / 328.3 MB, free: 4.789 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.0004861/0.00559, allocations: 317.9 kB / 328.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.005625, allocations: 12.03 kB / 328.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.005669, allocations: 16.92 kB / 328.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.005848, allocations: 137.6 kB / 328.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.005862, allocations: 8.375 kB / 328.8 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.00588, allocations: 4.375 kB / 328.8 MB, free: 4.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.00612, allocations: 192.4 kB / 329 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.006128, allocations: 4.188 kB / 329 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.006141, allocations: 4.375 kB / 329 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.006149, allocations: 4.375 kB / 329 MB, free: 4.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.559e-05/0.006205, allocations: 23.92 kB / 329 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.006645, allocations: 396.3 kB / 329.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.006778, allocations: 62.52 kB / 329.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.006922, allocations: 20.73 kB / 329.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.006941, allocations: 4 kB / 329.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.006963, allocations: 30.56 kB / 329.5 MB, free: 3.449 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.006965, allocations: 0 / 329.5 MB, free: 3.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001607/0.007125, allocations: 61.67 kB / 329.6 MB, free: 3.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.007176, allocations: 110.8 kB / 329.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.838e-05/0.007265, allocations: 137 kB / 329.8 MB, free: 3.105 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.007282, allocations: 33.69 kB / 329.8 MB, free: 3.066 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.007337, allocations: 108.7 kB / 330 MB, free: 2.957 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.007354, allocations: 23.78 kB / 330 MB, free: 2.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.007402, allocations: 29.69 kB / 330 MB, free: 2.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.667e-05/0.007489, allocations: 318.8 kB / 330.3 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.609e-05/0.007515, allocations: 11.98 kB / 330.3 MB, free: 2.566 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.748e-05/0.007583, allocations: 95.69 kB / 330.4 MB, free: 2.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.29e-05/0.007646, allocations: 46.42 kB / 330.5 MB, free: 2.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.007648, allocations: 0 / 330.5 MB, free: 2.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001171/0.007765, allocations: 73.58 kB / 330.5 MB, free: 2.312 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.007779, allocations: 4 kB / 330.5 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.007785, allocations: 4 kB / 330.5 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.007801, allocations: 3.984 kB / 330.6 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.348e-05/0.007894, allocations: 19.98 kB / 330.6 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.007898, allocations: 4 kB / 330.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.453e-05/0.007973, allocations: 19.94 kB / 330.6 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.007979, allocations: 0 / 330.6 MB, free: 2.258 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 7.869e-05/0.008058, allocations: 121.8 kB / 330.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.341e-05/0.008091, allocations: 15.92 kB / 330.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.008121, allocations: 8.781 kB / 330.7 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.008124, allocations: 4 kB / 330.7 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.008126, allocations: 0 / 330.7 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.008129, allocations: 0 / 330.7 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.008282, allocations: 98.53 kB / 330.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.008283, allocations: 0 / 330.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-05/0.008339, allocations: 15.98 kB / 330.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.008341, allocations: 0 / 330.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.00835, allocations: 11.94 kB / 330.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.008351, allocations: 400 / 330.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.008352, allocations: 0 / 330.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001345/0.008487, allocations: 167.4 kB / 331 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.008498, allocations: 7.953 kB / 331 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.008514, allocations: 3.938 kB / 331 MB, free: 1.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.642e-05/0.00861, allocations: 19.98 kB / 331.1 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.008649, allocations: 11.98 kB / 331.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.008654, allocations: 0 / 331.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.022e-05/0.008684, allocations: 28.83 kB / 331.1 MB, free: 1.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008684, allocations: 4 kB / 331.1 MB, free: 1.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002464/0.008931, allocations: 19.95 kB / 331.1 MB, free: 1.68 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.628e-05/0.009027, allocations: 80.41 kB / 331.2 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.009132, allocations: 36.78 kB / 331.2 MB, free: 1.555 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.009136, allocations: 0 / 331.2 MB, free: 1.555 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.864e-05/0.009174, allocations: 24.84 kB / 331.3 MB, free: 1.527 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.0094, allocations: 30.69 kB / 331.3 MB, free: 1.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.009758, allocations: 201.1 kB / 331.5 MB, free: 1.281 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.511e-05/0.009803, allocations: 63.34 kB / 331.5 MB, free: 1.199 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.357e-05/0.009857, allocations: 8.734 kB / 331.6 MB, free: 1.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.009976, allocations: 75.36 kB / 331.6 MB, free: 1.113 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.009977, allocations: 0 / 331.6 MB, free: 1.113 MB / 298.7 MB Notification: Performance of Templates: time 0.00445/0.01443, allocations: 1.639 MB / 333.3 MB, free: 15.52 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 -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.872741064056754]