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.0008634/0.0008634, allocations: 88.28 kB / 21.43 MB, free: 3.137 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.003901/0.003901, allocations: 156.7 kB / 24.7 MB, free: 8.895 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.8762/0.8762, allocations: 177 MB / 204.9 MB, free: 5.762 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.2617/0.2617, allocations: 34.24 MB / 295.6 MB, free: 0.6719 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 2.084e-06/2.084e-06, allocations: 0 / 443.4 MB, free: 1.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.686e-05, allocations: 12.97 kB / 443.4 MB, free: 1.078 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.1632/0.1632, allocations: 1.694 MB / 445.1 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003619/0.1636, allocations: 156.2 kB / 445.3 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.503e-05/0.1636, allocations: 5.594 kB / 445.3 MB, free: 43.68 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.907e-05/0.1637, allocations: 12.84 kB / 445.3 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.661e-05/0.1637, allocations: 7.891 kB / 445.3 MB, free: 43.67 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.164, allocations: 104.6 kB / 445.4 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.1641, allocations: 110.6 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1642, allocations: 19.17 kB / 445.5 MB, free: 43.64 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.941e-05/0.1643, allocations: 65.2 kB / 445.6 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.785e-05/0.1643, allocations: 30.44 kB / 445.6 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.1643, allocations: 8.719 kB / 445.6 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.025e-05/0.1643, allocations: 8.531 kB / 445.6 MB, free: 43.61 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.1644, allocations: 21.58 kB / 445.6 MB, free: 43.6 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.228e-05/0.1644, allocations: 30.58 kB / 445.7 MB, free: 43.58 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.1645, allocations: 97.47 kB / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1645, allocations: 0 / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1645, allocations: 0 / 445.8 MB, free: 43.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1645, allocations: 0 / 445.8 MB, free: 43.54 MB / 410.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.0004064/0.1649, allocations: 379.6 kB / 446.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1649, allocations: 11.31 kB / 446.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.165, allocations: 10.61 kB / 446.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.1651, allocations: 140.3 kB / 446.3 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.1651, allocations: 7.25 kB / 446.3 MB, free: 43.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.1652, allocations: 7.031 kB / 446.3 MB, free: 43.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.1654, allocations: 206.2 kB / 446.5 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1654, allocations: 192 / 446.5 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.1654, allocations: 3.344 kB / 446.5 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1654, allocations: 4.219 kB / 446.5 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.1656, allocations: 121 kB / 446.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003338/0.1659, allocations: 471.1 kB / 447.1 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.1661, allocations: 133.1 kB / 447.2 MB, free: 42.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.1662, allocations: 58.44 kB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.1662, allocations: 2.844 kB / 447.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.1662, allocations: 33.25 kB / 447.3 MB, free: 42.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 7.91e-07/0.1662, allocations: 0 / 447.3 MB, free: 42.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003232/0.1665, allocations: 199.7 kB / 447.5 MB, free: 42.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.591e-05/0.1666, allocations: 102.8 kB / 447.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.658e-05/0.1666, allocations: 144.3 kB / 447.8 MB, free: 42.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-06/0.1666, allocations: 29.7 kB / 447.8 MB, free: 42.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.1667, allocations: 109.1 kB / 447.9 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-06/0.1667, allocations: 18.73 kB / 447.9 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.1667, allocations: 31.64 kB / 447.9 MB, free: 41.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.612e-05/0.1667, allocations: 320.8 kB / 448.3 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.1668, allocations: 50.05 kB / 448.3 MB, free: 41.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.312e-05/0.1669, allocations: 142.8 kB / 448.4 MB, free: 41.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.167, allocations: 111.2 kB / 448.6 MB, free: 41.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.167, allocations: 0 / 448.6 MB, free: 41.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001805/0.1672, allocations: 159.1 kB / 448.7 MB, free: 41.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.1672, allocations: 5.875 kB / 448.7 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1672, allocations: 0 / 448.7 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1673, allocations: 2.875 kB / 448.7 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.169e-05/0.1673, allocations: 34.39 kB / 448.8 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1673, allocations: 2.688 kB / 448.8 MB, free: 41.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/0.1674, allocations: 29.88 kB / 448.8 MB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1674, allocations: 6.594 kB / 448.8 MB, free: 41.34 MB / 410.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.703e-05/0.1675, allocations: 130.6 kB / 448.9 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.1675, allocations: 9.734 kB / 448.9 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.438e-05/0.1675, allocations: 15.59 kB / 448.9 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1675, allocations: 0 / 448.9 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1675, allocations: 0 / 448.9 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1675, allocations: 0 / 448.9 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.424e-05/0.1676, allocations: 139.8 kB / 449.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1676, allocations: 4 kB / 449.1 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.1676, allocations: 29.33 kB / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.1676, allocations: 0 / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.293e-06/0.1676, allocations: 5.875 kB / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1676, allocations: 3.234 kB / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1676, allocations: 0 / 449.1 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001801/0.1678, allocations: 241.4 kB / 449.4 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-06/0.1678, allocations: 10.72 kB / 449.4 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.1678, allocations: 3.094 kB / 449.4 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.897e-05/0.1679, allocations: 28.33 kB / 449.4 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.1679, allocations: 6.109 kB / 449.4 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.1679, allocations: 4 kB / 449.4 MB, free: 40.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.589e-05/0.168, allocations: 100.1 kB / 449.5 MB, free: 40.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.168, allocations: 2.969 kB / 449.5 MB, free: 40.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001463/0.1681, allocations: 22.31 kB / 449.5 MB, free: 40.78 MB / 410.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 6.217e-05/0.1682, allocations: 94.09 kB / 449.6 MB, free: 40.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.1684, allocations: 107.2 kB / 449.7 MB, free: 40.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1684, allocations: 2.906 kB / 449.7 MB, free: 40.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.268e-05/0.1685, allocations: 67.42 kB / 449.8 MB, free: 40.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.1687, allocations: 19.72 kB / 449.8 MB, free: 40.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.169, allocations: 243.8 kB / 450.1 MB, free: 40.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.928e-05/0.169, allocations: 89.97 kB / 450.1 MB, free: 40.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.1691, allocations: 17.52 kB / 450.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1691, allocations: 0 / 450.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of Templates: time 0.001677/0.1707, allocations: 1.449 MB / 451.6 MB, free: 40.31 MB / 410.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=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: 4.558851629495621]