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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 67.88 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3784, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003181/0.3816, allocations: 1.994 MB / 411.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.3828, allocations: 0.6933 MB / 411.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3829, allocations: 3.938 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.571e-05/0.383, allocations: 19.78 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.3831, allocations: 27.75 kB / 412 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004426/0.3836, allocations: 131.4 kB / 412.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.3838, allocations: 204 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.384, allocations: 96.28 kB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.3842, allocations: 91.69 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.3844, allocations: 95.53 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.3844, allocations: 20 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.4e-05/0.3845, allocations: 24 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.466e-05/0.3845, allocations: 43.84 kB / 412.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.3846, allocations: 91.5 kB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.3849, allocations: 227 kB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3849, allocations: 0 / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.3849, allocations: 4 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3849, allocations: 0 / 413 MB, free: 13.85 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.0008877/0.3858, allocations: 0.5194 MB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3858, allocations: 12.03 kB / 413.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.386, allocations: 32.73 kB / 413.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.3863, allocations: 241.6 kB / 413.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.801e-05/0.3864, allocations: 50.47 kB / 413.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.3865, allocations: 23.92 kB / 413.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.3871, allocations: 329.7 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.3872, allocations: 0 / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.3872, allocations: 7.984 kB / 414.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.3872, allocations: 4 kB / 414.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.3876, allocations: 127.9 kB / 414.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006688/0.3883, allocations: 457.3 kB / 414.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.3888, allocations: 201.1 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.389, allocations: 105.7 kB / 415 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.389, allocations: 0 / 415 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.3893, allocations: 127.4 kB / 415.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3893, allocations: 0 / 415.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008486/0.3902, allocations: 289.8 kB / 415.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.3903, allocations: 85.11 kB / 415.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.3904, allocations: 150.4 kB / 415.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.3904, allocations: 37.69 kB / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.3905, allocations: 116.4 kB / 415.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.3906, allocations: 39.61 kB / 415.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.3907, allocations: 45.7 kB / 415.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.3908, allocations: 330.8 kB / 416.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.391, allocations: 64.19 kB / 416.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.3913, allocations: 154.6 kB / 416.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003904/0.3917, allocations: 223.8 kB / 416.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3917, allocations: 4 kB / 416.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005465/0.3922, allocations: 286.2 kB / 417 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.3923, allocations: 33.69 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3923, allocations: 4 kB / 417 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3923, allocations: 4 kB / 417 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.3925, allocations: 43.91 kB / 417 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.3925, allocations: 11.92 kB / 417.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.3927, allocations: 23.89 kB / 417.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.3927, allocations: 19.92 kB / 417.1 MB, free: 9.359 MB / 334.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.0001319/0.3928, allocations: 150 kB / 417.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.393, allocations: 101.5 kB / 417.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.299e-05/0.3931, allocations: 20.72 kB / 417.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3931, allocations: 7.938 kB / 417.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3931, allocations: 0 / 417.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.3931, allocations: 7.922 kB / 417.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.3938, allocations: 0.4904 MB / 417.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3938, allocations: 0 / 417.9 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.394, allocations: 39.95 kB / 417.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.394, allocations: 0 / 417.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3941, allocations: 8 kB / 417.9 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3941, allocations: 3.938 kB / 417.9 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3941, allocations: 0 / 417.9 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005344/0.3946, allocations: 325.4 kB / 418.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.3947, allocations: 88.92 kB / 418.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.3947, allocations: 11.98 kB / 418.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3949, allocations: 15.92 kB / 418.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/0.395, allocations: 19.92 kB / 418.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.395, allocations: 15.98 kB / 418.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.975e-05/0.3951, allocations: 114.3 kB / 418.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3951, allocations: 0 / 418.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.3954, allocations: 43.84 kB / 418.5 MB, free: 7.801 MB / 334.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.0001216/0.3955, allocations: 111.2 kB / 418.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.3961, allocations: 235.2 kB / 418.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3961, allocations: 4 kB / 418.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.3963, allocations: 63.89 kB / 418.9 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004239/0.3967, allocations: 64.98 kB / 419 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.3973, allocations: 322.1 kB / 419.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.3976, allocations: 0.7244 MB / 420 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.803e-05/0.3977, allocations: 17.55 kB / 420.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.3978, allocations: 23.42 kB / 420.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3978, allocations: 0 / 420.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of Templates: time 0.005163/0.403, allocations: 1.959 MB / 422 MB, free: 4.23 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width