Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.0009134/0.0009134, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001944, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006898/0.0006898, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000845/0.001535, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.934/0.934, allocations: 177.5 MB / 190.1 MB, free: 4.789 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09585/1.03, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.7 MB " [Timeout remaining time 179] 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(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.544e-06/9.468e-06, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002001/0.00201, allocations: 2.075 MB / 247.3 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006837/0.002694, allocations: 0.7086 MB / 248 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.563e-05/0.00276, allocations: 3.938 kB / 248 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.002791, allocations: 15.8 kB / 248 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.329e-05/0.002844, allocations: 35.67 kB / 248 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.003058, allocations: 119.6 kB / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.003225, allocations: 204 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.003327, allocations: 70.17 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.003504, allocations: 147.6 kB / 248.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.003579, allocations: 67.78 kB / 248.6 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.003601, allocations: 20 kB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.668e-05/0.003647, allocations: 24 kB / 248.7 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.737e-05/0.003675, allocations: 39.86 kB / 248.7 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.854e-05/0.003713, allocations: 43.88 kB / 248.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.003853, allocations: 127.5 kB / 248.9 MB, free: 9.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.00386, allocations: 0 / 248.9 MB, free: 9.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003861, allocations: 0 / 248.9 MB, free: 9.891 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.003867, allocations: 0 / 248.9 MB, free: 9.891 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0004842/0.004351, allocations: 479.5 kB / 249.3 MB, free: 9.383 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.466e-05/0.004376, allocations: 8.625 kB / 249.3 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.0045, allocations: 110 kB / 249.5 MB, free: 9.25 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.004653, allocations: 174 kB / 249.6 MB, free: 9.055 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.27e-05/0.004695, allocations: 64.3 kB / 249.7 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.004713, allocations: 16.38 kB / 249.7 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.005013, allocations: 305.6 kB / 250 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.00502, allocations: 0 / 250 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.005032, allocations: 4 kB / 250 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.005036, allocations: 4 kB / 250 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.527e-05/0.005101, allocations: 47.83 kB / 250.1 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003007/0.005402, allocations: 268.8 kB / 250.3 MB, free: 8.305 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.005524, allocations: 109 kB / 250.4 MB, free: 8.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.535e-05/0.005569, allocations: 45.7 kB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.005586, allocations: 8.359 kB / 250.5 MB, free: 8.121 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.764e-05/0.005674, allocations: 116.9 kB / 250.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.032e-06/0.005675, allocations: 0 / 250.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001743/0.005849, allocations: 133.5 kB / 250.7 MB, free: 7.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.005891, allocations: 89.09 kB / 250.8 MB, free: 7.746 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.706e-05/0.005958, allocations: 156.1 kB / 251 MB, free: 7.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.005978, allocations: 37.69 kB / 251 MB, free: 7.539 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.883e-05/0.006017, allocations: 104.5 kB / 251.1 MB, free: 7.434 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.00604, allocations: 47.61 kB / 251.1 MB, free: 7.387 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.006077, allocations: 29.69 kB / 251.2 MB, free: 7.352 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.006142, allocations: 326.8 kB / 251.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.205e-05/0.006174, allocations: 41.7 kB / 251.5 MB, free: 6.977 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.825e-05/0.006212, allocations: 71.31 kB / 251.6 MB, free: 6.895 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.712e-05/0.006269, allocations: 67.39 kB / 251.7 MB, free: 6.816 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.006271, allocations: 8.031 kB / 251.7 MB, free: 6.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001056/0.006377, allocations: 144.9 kB / 251.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.006403, allocations: 33.7 kB / 251.8 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.006406, allocations: 0 / 251.8 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.795e-06/0.006414, allocations: 0 / 251.8 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.806e-05/0.006502, allocations: 35.97 kB / 251.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.896e-06/0.006505, allocations: 0 / 251.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.281e-05/0.006558, allocations: 15.92 kB / 251.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.006566, allocations: 4 kB / 251.9 MB, free: 6.555 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.024e-05/0.006636, allocations: 125.8 kB / 252 MB, free: 6.422 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/0.006704, allocations: 82.47 kB / 252.1 MB, free: 6.336 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.006737, allocations: 28.7 kB / 252.1 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.006738, allocations: 0 / 252.1 MB, free: 6.309 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.006742, allocations: 3.984 kB / 252.1 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.006746, allocations: 4 kB / 252.1 MB, free: 6.301 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.006947, allocations: 278.6 kB / 252.4 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.006948, allocations: 0 / 252.4 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.007033, allocations: 39.91 kB / 252.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.222e-05/0.007045, allocations: 19.91 kB / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.007047, allocations: 0 / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.007058, allocations: 11.98 kB / 252.5 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.007059, allocations: 0 / 252.5 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.007062, allocations: 3.984 kB / 252.5 MB, free: 5.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.72e-05/0.007159, allocations: 176.2 kB / 252.7 MB, free: 5.738 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.007177, allocations: 8 kB / 252.7 MB, free: 5.73 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.86e-05/0.007246, allocations: 19.98 kB / 252.7 MB, free: 5.711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.007291, allocations: 15.92 kB / 252.7 MB, free: 5.695 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.0073, allocations: 11.98 kB / 252.7 MB, free: 5.684 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.416e-05/0.007324, allocations: 30.66 kB / 252.7 MB, free: 5.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007324, allocations: 0 / 252.7 MB, free: 5.652 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000131/0.007455, allocations: 39.89 kB / 252.8 MB, free: 5.613 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.016e-05/0.007515, allocations: 88.41 kB / 252.9 MB, free: 5.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.007647, allocations: 153.8 kB / 253 MB, free: 5.348 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.007655, allocations: 7.984 kB / 253 MB, free: 5.34 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.258e-05/0.007697, allocations: 32.84 kB / 253.1 MB, free: 5.305 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.007903, allocations: 142.3 kB / 253.2 MB, free: 5.156 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/0.008578, allocations: 307.3 kB / 253.5 MB, free: 4.824 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.857e-05/0.008617, allocations: 83.77 kB / 253.6 MB, free: 4.723 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.677e-05/0.008653, allocations: 9.156 kB / 253.6 MB, free: 4.715 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.13e-05/0.008735, allocations: 83.34 kB / 253.7 MB, free: 4.633 MB / 250.7 MB Notification: Performance of SimCode: time 5.51e-07/0.008735, allocations: 0 / 253.7 MB, free: 4.633 MB / 250.7 MB Notification: Performance of Templates: time 0.003109/0.01184, allocations: 2.014 MB / 255.7 MB, free: 2.652 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.407585891894996]