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.00153/0.00153, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001672, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 55.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.316, allocations: 50.54 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00302/0.319, allocations: 1.995 MB / 411.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3202, allocations: 0.705 MB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.3203, allocations: 4 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.3204, allocations: 19.73 kB / 412 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.3205, allocations: 19.75 kB / 412 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.3209, allocations: 119.7 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.3211, allocations: 208 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.3213, allocations: 104.3 kB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.3215, allocations: 91.69 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.3216, allocations: 91.53 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.3217, allocations: 20 kB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.408e-05/0.3217, allocations: 28 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.158e-05/0.3218, allocations: 39.89 kB / 412.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.29e-05/0.3219, allocations: 83.53 kB / 412.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.3221, allocations: 226.9 kB / 413 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3222, allocations: 0 / 413 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3222, allocations: 3.938 kB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.3222, allocations: 0 / 413 MB, free: 13.86 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.0007866/0.323, allocations: 0.5336 MB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.323, allocations: 15.97 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.3232, allocations: 32.78 kB / 413.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.3234, allocations: 235.6 kB / 413.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.151e-05/0.3235, allocations: 50.52 kB / 413.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.3235, allocations: 19.94 kB / 413.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006917/0.3242, allocations: 319 kB / 414.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3243, allocations: 4 kB / 414.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.3243, allocations: 7.984 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3243, allocations: 4 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.3247, allocations: 135.8 kB / 414.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006215/0.3253, allocations: 465.3 kB / 414.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.3258, allocations: 197.2 kB / 415 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.3261, allocations: 101.7 kB / 415 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.3261, allocations: 11.98 kB / 415.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.3264, allocations: 123.5 kB / 415.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.3264, allocations: 0 / 415.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007584/0.3271, allocations: 286 kB / 415.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.3272, allocations: 93.27 kB / 415.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3274, allocations: 150.4 kB / 415.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.3274, allocations: 33.7 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.3275, allocations: 112.5 kB / 415.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.3275, allocations: 35.73 kB / 415.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/0.3276, allocations: 45.7 kB / 415.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3277, allocations: 338.8 kB / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.3279, allocations: 60.19 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3282, allocations: 154.6 kB / 416.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/0.3286, allocations: 227.8 kB / 416.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3286, allocations: 0 / 416.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000527/0.3291, allocations: 282.1 kB / 417 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.3292, allocations: 41.69 kB / 417 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3292, allocations: 4 kB / 417 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3292, allocations: 4 kB / 417 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3294, allocations: 44.25 kB / 417.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3295, allocations: 7.938 kB / 417.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.3296, allocations: 27.94 kB / 417.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.3297, allocations: 15.92 kB / 417.1 MB, free: 9.355 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.0001267/0.3298, allocations: 141.9 kB / 417.2 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.33, allocations: 113.5 kB / 417.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.268e-05/0.3301, allocations: 16.72 kB / 417.4 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3301, allocations: 4 kB / 417.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3301, allocations: 4 kB / 417.4 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3301, allocations: 3.984 kB / 417.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.3308, allocations: 494.2 kB / 417.9 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3308, allocations: 3.984 kB / 417.9 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.331, allocations: 43.91 kB / 417.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.331, allocations: 4 kB / 417.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.3311, allocations: 4 kB / 417.9 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3311, allocations: 3.938 kB / 417.9 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3311, allocations: 4 kB / 417.9 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005426/0.3316, allocations: 321.4 kB / 418.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.568e-05/0.3317, allocations: 105 kB / 418.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.3317, allocations: 3.984 kB / 418.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.3319, allocations: 23.92 kB / 418.4 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.332, allocations: 11.98 kB / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.332, allocations: 7.984 kB / 418.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.815e-05/0.3321, allocations: 118.3 kB / 418.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3321, allocations: 0 / 418.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002779/0.3323, allocations: 35.94 kB / 418.5 MB, free: 7.805 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.3325, allocations: 111.2 kB / 418.6 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005315/0.333, allocations: 242.7 kB / 418.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.333, allocations: 4 kB / 418.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.3332, allocations: 60.64 kB / 418.9 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.3336, allocations: 67.92 kB / 419 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006503/0.3343, allocations: 329 kB / 419.3 MB, free: 6.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.3346, allocations: 0.7322 MB / 420.1 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.021e-05/0.3347, allocations: 13.55 kB / 420.1 MB, free: 6.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/0.3347, allocations: 19.42 kB / 420.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3348, allocations: 4 kB / 420.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of Templates: time 0.00481/0.3396, allocations: 1.967 MB / 422.1 MB, free: 4.211 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