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.001717/0.001717, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001371/0.001371, allocations: 158.9 kB / 25.61 MB, free: 8.887 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.018/1.018, allocations: 177 MB / 205.9 MB, free: 4.426 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.1545/0.1545, allocations: 34.87 MB / 297.4 MB, free: 13.34 MB / 282.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.513e-06/1.513e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.962e-05, allocations: 2.312 kB / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002714/0.002734, allocations: 1.734 MB / 381.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004497/0.003184, allocations: 159.5 kB / 381.9 MB, free: 20.87 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.331e-05/0.003277, allocations: 3.938 kB / 381.9 MB, free: 20.86 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 4.129e-05/0.003318, allocations: 11.86 kB / 381.9 MB, free: 20.85 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.804e-05/0.003386, allocations: 11.88 kB / 381.9 MB, free: 20.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.003698, allocations: 103.7 kB / 382 MB, free: 20.74 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001685/0.003866, allocations: 107.8 kB / 382.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.003999, allocations: 25.56 kB / 382.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.844e-05/0.004097, allocations: 55.89 kB / 382.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.152e-05/0.004149, allocations: 35.89 kB / 382.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.004175, allocations: 12 kB / 382.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.004188, allocations: 8 kB / 382.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.825e-05/0.004217, allocations: 15.92 kB / 382.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.004248, allocations: 35.91 kB / 382.3 MB, free: 20.45 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.004371, allocations: 75.61 kB / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.004373, allocations: 0 / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.004374, allocations: 0 / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.004378, allocations: 0 / 382.4 MB, free: 20.37 MB / 314.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.0004971/0.004875, allocations: 456.2 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.004919, allocations: 12.02 kB / 382.8 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.004966, allocations: 12.89 kB / 382.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.005139, allocations: 151.3 kB / 383 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.005151, allocations: 8.375 kB / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.005168, allocations: 8.375 kB / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.00543, allocations: 204.7 kB / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.005442, allocations: 192 / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.005456, allocations: 4.375 kB / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.005465, allocations: 4.375 kB / 383.2 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.504e-05/0.00554, allocations: 25.61 kB / 383.2 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/0.006068, allocations: 0.5722 MB / 383.8 MB, free: 18.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.00618, allocations: 74.89 kB / 383.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.533e-05/0.006206, allocations: 23.7 kB / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.006222, allocations: 0 / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.006239, allocations: 41.39 kB / 383.9 MB, free: 18.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.00624, allocations: 0 / 383.9 MB, free: 18.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001549/0.006395, allocations: 77.69 kB / 384 MB, free: 18.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.006426, allocations: 102.8 kB / 384.1 MB, free: 18.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.194e-05/0.006488, allocations: 195.7 kB / 384.3 MB, free: 18.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.006498, allocations: 29.7 kB / 384.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.006541, allocations: 162.8 kB / 384.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.064e-05/0.006552, allocations: 27.72 kB / 384.5 MB, free: 17.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.006586, allocations: 31.36 kB / 384.6 MB, free: 17.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.006631, allocations: 0.4962 MB / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.734e-05/0.006649, allocations: 7.984 kB / 385.1 MB, free: 17.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.298e-05/0.006692, allocations: 113.8 kB / 385.2 MB, free: 17.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.265e-05/0.006734, allocations: 50.98 kB / 385.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.006736, allocations: 0 / 385.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.976e-05/0.006826, allocations: 81.5 kB / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.006838, allocations: 4 kB / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.006844, allocations: 4 kB / 385.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.834e-06/0.006852, allocations: 0 / 385.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.202e-05/0.006924, allocations: 24.08 kB / 385.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.006927, allocations: 4 kB / 385.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.132e-05/0.006978, allocations: 15.98 kB / 385.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.006983, allocations: 0 / 385.4 MB, free: 17.09 MB / 314.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 4.705e-05/0.00703, allocations: 168.5 kB / 385.5 MB, free: 16.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.007052, allocations: 23.83 kB / 385.5 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.007078, allocations: 12.78 kB / 385.6 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.00708, allocations: 0 / 385.6 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.007083, allocations: 0 / 385.6 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.007087, allocations: 0 / 385.6 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.955e-05/0.007176, allocations: 133.2 kB / 385.7 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.007177, allocations: 0 / 385.7 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.242e-05/0.00721, allocations: 15.98 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.007211, allocations: 3.938 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.007216, allocations: 0 / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.007216, allocations: 0 / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.007218, allocations: 4 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.443e-05/0.007302, allocations: 219.8 kB / 385.9 MB, free: 16.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.336e-06/0.007311, allocations: 7.891 kB / 385.9 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.007324, allocations: 15.94 kB / 385.9 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.532e-05/0.007379, allocations: 15.98 kB / 386 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.007407, allocations: 11.98 kB / 386 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/0.007411, allocations: 4 kB / 386 MB, free: 16.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.581e-05/0.007437, allocations: 140.4 kB / 386.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007437, allocations: 3.938 kB / 386.1 MB, free: 16.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001458/0.007583, allocations: 19.95 kB / 386.1 MB, free: 16.25 MB / 314.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 5.654e-05/0.00764, allocations: 91.25 kB / 386.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.391e-05/0.007733, allocations: 52.05 kB / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.007735, allocations: 8.125 kB / 386.3 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.622e-05/0.007761, allocations: 27.61 kB / 386.3 MB, free: 16.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.007948, allocations: 25.7 kB / 386.3 MB, free: 16.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002507/0.008199, allocations: 211.6 kB / 386.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.605e-05/0.008225, allocations: 67.2 kB / 386.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.267e-05/0.008258, allocations: 4.734 kB / 386.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.126e-05/0.008339, allocations: 106.2 kB / 386.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.00834, allocations: 4 kB / 386.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of Templates: time 0.002979/0.01132, allocations: 1.738 MB / 388.5 MB, free: 13.89 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: 3.273670620750636]