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.001988/0.001988, allocations: 86.41 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002247/0.002247, allocations: 159.4 kB / 23.95 MB, free: 4.168 MB / 14.72 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.503/1.503, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.2205/0.2205, allocations: 34.26 MB / 294.8 MB, free: 14.54 MB / 286.1 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 / 442.6 MB, free: 5.324 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.957e-05/3.145e-05, allocations: 4.531 kB / 442.6 MB, free: 5.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002895/0.002926, allocations: 1.69 MB / 444.3 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004473/0.003373, allocations: 163.4 kB / 444.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.003453, allocations: 0 / 444.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.523e-05/0.003488, allocations: 7.875 kB / 444.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.03e-05/0.003558, allocations: 19.8 kB / 444.5 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.003947, allocations: 99.8 kB / 444.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000192/0.004139, allocations: 111.7 kB / 444.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.004257, allocations: 21.52 kB / 444.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.004368, allocations: 63.88 kB / 444.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.525e-05/0.004424, allocations: 19.97 kB / 444.8 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.004455, allocations: 15.94 kB / 444.8 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.072e-05/0.004475, allocations: 12 kB / 444.9 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.486e-05/0.00451, allocations: 23.91 kB / 444.9 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.844e-05/0.004559, allocations: 27.97 kB / 444.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.004725, allocations: 95.67 kB / 445 MB, free: 2.945 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.004727, allocations: 0 / 445 MB, free: 2.945 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004728, allocations: 0 / 445 MB, free: 2.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.004733, allocations: 0 / 445 MB, free: 2.945 MB / 366.1 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.0007263/0.005459, allocations: 373.8 kB / 445.4 MB, free: 2.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.005499, allocations: 12.02 kB / 445.4 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.005546, allocations: 12.83 kB / 445.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.0058, allocations: 149.6 kB / 445.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.005815, allocations: 4.375 kB / 445.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.005832, allocations: 8.375 kB / 445.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.006252, allocations: 205.8 kB / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.006261, allocations: 192 / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.006276, allocations: 384 / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.006285, allocations: 4.375 kB / 445.8 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003949/0.00668, allocations: 115.8 kB / 445.9 MB, free: 1.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.007354, allocations: 468.7 kB / 446.3 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.007823, allocations: 142.4 kB / 446.5 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.00802, allocations: 60.78 kB / 446.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.008051, allocations: 7.984 kB / 446.5 MB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.008084, allocations: 30.56 kB / 446.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.008085, allocations: 0 / 446.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006811/0.008766, allocations: 193.4 kB / 446.8 MB, free: 1.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.008842, allocations: 102.8 kB / 446.9 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.008973, allocations: 142.1 kB / 447 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.008997, allocations: 29.7 kB / 447 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.009082, allocations: 112.1 kB / 447.1 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.009101, allocations: 15.86 kB / 447.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.009159, allocations: 29.7 kB / 447.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.0093, allocations: 322.8 kB / 447.5 MB, free: 244 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.009492, allocations: 47.95 kB / 447.5 MB, free: 196 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.009736, allocations: 139.6 kB / 447.7 MB, free: 28 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2268/0.2365, allocations: 106.7 kB / 447.8 MB, free: 19.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.2365, allocations: 3.406 kB / 447.8 MB, free: 19.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004733/0.237, allocations: 153.6 kB / 447.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.237, allocations: 7.641 kB / 447.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.237, allocations: 2.906 kB / 447.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.237, allocations: 1.125 kB / 447.9 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2372, allocations: 26.19 kB / 448 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2372, allocations: 0.75 kB / 448 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.2374, allocations: 38.36 kB / 448 MB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.2374, allocations: 4.828 kB / 448 MB, free: 19.07 MB / 366.1 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 8.307e-05/0.2375, allocations: 124.4 kB / 448.1 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.2375, allocations: 10.17 kB / 448.1 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.2375, allocations: 15.2 kB / 448.2 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2375, allocations: 1.094 kB / 448.2 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.2375, allocations: 0 / 448.2 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2376, allocations: 1.672 kB / 448.2 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2377, allocations: 145.9 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2377, allocations: 1.812 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.2378, allocations: 21.55 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2378, allocations: 1.281 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.2378, allocations: 7.281 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2378, allocations: 2.438 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2379, allocations: 1.094 kB / 448.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.2383, allocations: 235.9 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.2383, allocations: 11.19 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.2383, allocations: 10 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.2385, allocations: 22.95 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.2385, allocations: 10.72 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.2385, allocations: 8.688 kB / 448.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.158e-05/0.2386, allocations: 104.3 kB / 448.7 MB, free: 18.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2386, allocations: 0 / 448.7 MB, free: 18.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.2388, allocations: 19.48 kB / 448.8 MB, free: 18.62 MB / 366.1 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.191e-05/0.2389, allocations: 90.73 kB / 448.8 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004612/0.2394, allocations: 123.6 kB / 449 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2394, allocations: 0 / 449 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001978/0.2396, allocations: 63.64 kB / 449 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.2399, allocations: 21.67 kB / 449 MB, free: 18.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005085/0.2404, allocations: 222.9 kB / 449.3 MB, free: 18.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.51e-05/0.2405, allocations: 85.66 kB / 449.3 MB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.006e-05/0.2405, allocations: 12.28 kB / 449.4 MB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.2405, allocations: 17.97 kB / 449.4 MB, free: 18.31 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2405, allocations: 0 / 449.4 MB, free: 18.31 MB / 366.1 MB Notification: Performance of Templates: time 0.004605/0.2452, allocations: 1.539 MB / 450.9 MB, free: 18.18 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.038656979799271]