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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001664/0.001664, allocations: 113.4 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.593/1.593, allocations: 230.4 MB / 251.1 MB, free: 8.43 MB / 206.1 MB 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.002025/0.002025, allocations: 71.83 kB / 368.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3815, allocations: 53.32 MB / 422.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003878/0.3853, allocations: 1.996 MB / 424.3 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.3868, allocations: 0.7089 MB / 425 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.3869, allocations: 4 kB / 425 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.333e-05/0.387, allocations: 19.73 kB / 425 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.3871, allocations: 35.72 kB / 425 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005079/0.3876, allocations: 119.7 kB / 425.1 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.3879, allocations: 207.9 kB / 425.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.3881, allocations: 72.33 kB / 425.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.3883, allocations: 87.69 kB / 425.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.3885, allocations: 87.59 kB / 425.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.3885, allocations: 20 kB / 425.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.185e-05/0.3886, allocations: 28 kB / 425.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.185e-05/0.3886, allocations: 47.83 kB / 425.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.3887, allocations: 87.53 kB / 425.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.3891, allocations: 218.6 kB / 426 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3891, allocations: 3.938 kB / 426 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.3891, allocations: 0 / 426 MB, free: 4.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3891, allocations: 0 / 426 MB, free: 4.09 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.00102/0.3901, allocations: 0.5375 MB / 426.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.3902, allocations: 12.03 kB / 426.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.3904, allocations: 28.8 kB / 426.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.3907, allocations: 236.6 kB / 426.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.74e-05/0.3908, allocations: 38.59 kB / 426.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.3908, allocations: 27.88 kB / 426.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007478/0.3916, allocations: 335 kB / 427.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.3916, allocations: 0 / 427.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.3916, allocations: 8 kB / 427.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.3916, allocations: 0 / 427.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000458/0.3921, allocations: 139.8 kB / 427.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008947/0.393, allocations: 457.3 kB / 427.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005757/0.3935, allocations: 193.1 kB / 428 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.3938, allocations: 93.66 kB / 428 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.3939, allocations: 12.06 kB / 428.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.3942, allocations: 119.5 kB / 428.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.565e-06/0.3942, allocations: 0 / 428.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008475/0.3951, allocations: 281.3 kB / 428.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.755e-05/0.3952, allocations: 93.05 kB / 428.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.3953, allocations: 150.4 kB / 428.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.3954, allocations: 33.7 kB / 428.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3955, allocations: 116.5 kB / 428.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.3955, allocations: 39.72 kB / 428.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.427e-05/0.3956, allocations: 45.7 kB / 428.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3958, allocations: 330.8 kB / 429.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.396, allocations: 64.19 kB / 429.3 MB, free: 496 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.3962, allocations: 143.6 kB / 429.4 MB, free: 316 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004434/0.3967, allocations: 242.7 kB / 429.7 MB, free: 32 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3967, allocations: 0 / 429.7 MB, free: 32 kB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005961/0.3973, allocations: 275.3 kB / 430 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.3973, allocations: 37.7 kB / 430 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.3973, allocations: 4 kB / 430 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.3974, allocations: 11.97 kB / 430 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.3976, allocations: 47.84 kB / 430.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3976, allocations: 4 kB / 430.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.3978, allocations: 27.88 kB / 430.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.3978, allocations: 11.94 kB / 430.1 MB, free: 15.6 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.0001724/0.398, allocations: 145.8 kB / 430.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.3982, allocations: 105.6 kB / 430.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.362e-05/0.3982, allocations: 20.72 kB / 430.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3982, allocations: 0 / 430.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.3983, allocations: 7.938 kB / 430.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3983, allocations: 0 / 430.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008056/0.3991, allocations: 0.4942 MB / 430.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3991, allocations: 4 kB / 430.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.3993, allocations: 43.89 kB / 430.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3993, allocations: 4 kB / 430.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3993, allocations: 4 kB / 430.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/0.3993, allocations: 7.938 kB / 430.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3993, allocations: 0 / 430.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006243/0.3999, allocations: 330.8 kB / 431.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.977e-05/0.4, allocations: 89.02 kB / 431.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.4, allocations: 4 kB / 431.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.4002, allocations: 27.91 kB / 431.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.4003, allocations: 15.92 kB / 431.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.4003, allocations: 15.98 kB / 431.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.635e-05/0.4004, allocations: 107.3 kB / 431.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4004, allocations: 0 / 431.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.4007, allocations: 35.94 kB / 431.5 MB, free: 14.04 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.0001534/0.4009, allocations: 111.2 kB / 431.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006104/0.4015, allocations: 242.7 kB / 431.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4015, allocations: 0 / 431.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.4017, allocations: 59.95 kB / 431.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.4021, allocations: 55.95 kB / 432 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007507/0.4029, allocations: 329.6 kB / 432.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.4033, allocations: 0.7321 MB / 433 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.878e-05/0.4034, allocations: 21.53 kB / 433.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.519e-05/0.4035, allocations: 19.44 kB / 433.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4035, allocations: 0 / 433.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Templates: time 0.006784/0.4103, allocations: 2.015 MB / 435.1 MB, free: 10.42 MB / 350.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/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] "" 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