Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.007136/0.007136, allocations: 109.4 kB / 21.98 MB, free: 5.184 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.001829/0.001829, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 259 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 71.88 kB / 379.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2697, allocations: 53.37 MB / 433.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004475/0.2742, allocations: 2.016 MB / 435.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2759, allocations: 0.709 MB / 435.9 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.2761, allocations: 7.938 kB / 435.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.21e-05/0.2762, allocations: 23.72 kB / 435.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.2764, allocations: 19.75 kB / 435.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.277, allocations: 130.6 kB / 436.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.2774, allocations: 215.9 kB / 436.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.2776, allocations: 64.84 kB / 436.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003065/0.2779, allocations: 91.69 kB / 436.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.2781, allocations: 95.53 kB / 436.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.785e-05/0.2781, allocations: 20 kB / 436.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.2782, allocations: 24 kB / 436.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.2782, allocations: 43.89 kB / 436.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.2784, allocations: 87.53 kB / 436.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.2788, allocations: 228.1 kB / 436.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.2788, allocations: 0 / 436.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.2788, allocations: 4 kB / 436.9 MB, free: 3.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.2788, allocations: 0 / 436.9 MB, free: 3.203 MB / 334.1 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.001012/0.2798, allocations: 465.3 kB / 437.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.2798, allocations: 11.97 kB / 437.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.2801, allocations: 36.77 kB / 437.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.2805, allocations: 178.8 kB / 437.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.982e-05/0.2806, allocations: 46.59 kB / 437.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.2806, allocations: 15.94 kB / 437.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007981/0.2814, allocations: 337.8 kB / 438 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2814, allocations: 0 / 438 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.902e-05/0.2814, allocations: 8 kB / 438 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.2814, allocations: 4 kB / 438 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.2819, allocations: 130 kB / 438.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008424/0.2827, allocations: 436.4 kB / 438.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.2833, allocations: 189.1 kB / 438.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.2836, allocations: 97.66 kB / 438.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.2836, allocations: 8.062 kB / 438.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.284, allocations: 117.8 kB / 439 MB, free: 1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.667e-06/0.284, allocations: 0 / 439 MB, free: 1 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009616/0.2849, allocations: 285.5 kB / 439.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.2851, allocations: 93.97 kB / 439.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.2852, allocations: 147.3 kB / 439.5 MB, free: 460 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.2853, allocations: 33.7 kB / 439.5 MB, free: 420 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.2854, allocations: 116.5 kB / 439.6 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.544e-05/0.2854, allocations: 43.67 kB / 439.7 MB, free: 256 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-05/0.2855, allocations: 49.7 kB / 439.7 MB, free: 200 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.2857, allocations: 326.8 kB / 440 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.2859, allocations: 60.19 kB / 440.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.2862, allocations: 151.6 kB / 440.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.2867, allocations: 231.8 kB / 440.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.2867, allocations: 4 kB / 440.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005832/0.2873, allocations: 274.9 kB / 440.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.607e-05/0.2873, allocations: 37.69 kB / 440.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2873, allocations: 4.344 kB / 440.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.2874, allocations: 15.94 kB / 440.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.2876, allocations: 43.91 kB / 440.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.2876, allocations: 4 kB / 440.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.2877, allocations: 27.88 kB / 440.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.2878, allocations: 15.94 kB / 440.9 MB, free: 14.92 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$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 (26): * Single equations (assignments): 25 * 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 0.000157/0.2879, allocations: 145.7 kB / 441 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.2881, allocations: 109.5 kB / 441.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.887e-05/0.2882, allocations: 24.72 kB / 441.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2882, allocations: 0 / 441.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2882, allocations: 0 / 441.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2882, allocations: 7.984 kB / 441.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007882/0.289, allocations: 473.2 kB / 441.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.289, allocations: 0 / 441.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.2892, allocations: 43.91 kB / 441.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.2892, allocations: 7.984 kB / 441.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2892, allocations: 4 kB / 441.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.2892, allocations: 7.938 kB / 441.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2892, allocations: 0 / 441.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005823/0.2898, allocations: 323.7 kB / 442 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.435e-05/0.2898, allocations: 19.84 kB / 442 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.2899, allocations: 4 kB / 442 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.29, allocations: 27.91 kB / 442 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.2901, allocations: 11.98 kB / 442.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.2901, allocations: 15.92 kB / 442.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.34e-05/0.2902, allocations: 107.2 kB / 442.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2902, allocations: 0 / 442.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.2905, allocations: 39.94 kB / 442.2 MB, free: 13.48 MB / 350.1 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 0.0001205/0.2906, allocations: 107.2 kB / 442.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.2912, allocations: 235.1 kB / 442.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2912, allocations: 0.6875 kB / 442.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.2914, allocations: 59.95 kB / 442.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.2919, allocations: 65.81 kB / 442.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007522/0.2926, allocations: 351 kB / 443 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.293, allocations: 0.7323 MB / 443.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.744e-05/0.2931, allocations: 23.42 kB / 443.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2931, allocations: 0 / 443.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Templates: time 0.004775/0.2978, allocations: 2.217 MB / 446 MB, free: 9.648 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 7.195901124039665]