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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 122.8 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.001423/0.001424, allocations: 201.2 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.532/1.532, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3553, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004126/0.3595, allocations: 1.995 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3612, allocations: 0.6973 MB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.3614, allocations: 4 kB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.959e-05/0.3615, allocations: 19.73 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.3617, allocations: 23.73 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005834/0.3623, allocations: 123.8 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.3626, allocations: 208 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3629, allocations: 100.3 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.3632, allocations: 95.67 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.3633, allocations: 87.59 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.3634, allocations: 20 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.388e-05/0.3635, allocations: 31.94 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.605e-05/0.3636, allocations: 39.91 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.3637, allocations: 87.52 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000329/0.364, allocations: 220.9 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.364, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.364, allocations: 0 / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.364, allocations: 0 / 412.5 MB, free: 13.79 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.001137/0.3652, allocations: 0.5298 MB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3652, allocations: 12.02 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.3653, allocations: 50.73 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.3655, allocations: 32.66 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004233/0.3659, allocations: 247.6 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.245e-05/0.3661, allocations: 50.28 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.3661, allocations: 19.94 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008848/0.367, allocations: 323 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.367, allocations: 0 / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.367, allocations: 4 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3671, allocations: 4 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004648/0.3675, allocations: 135.8 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008657/0.3684, allocations: 457.3 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005782/0.369, allocations: 205.1 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.3693, allocations: 101.7 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.3693, allocations: 7.984 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003365/0.3697, allocations: 119.4 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.3697, allocations: 7.938 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000916/0.3706, allocations: 278.1 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.3708, allocations: 93.05 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.371, allocations: 153.4 kB / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.371, allocations: 29.7 kB / 415.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.3711, allocations: 120.4 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.82e-05/0.3712, allocations: 47.59 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.3713, allocations: 45.7 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3715, allocations: 326.8 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.3718, allocations: 60.19 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.3721, allocations: 150.7 kB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.3726, allocations: 235.7 kB / 416.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3726, allocations: 0 / 416.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006904/0.3733, allocations: 279.1 kB / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.3734, allocations: 33.7 kB / 416.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3734, allocations: 0 / 416.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3734, allocations: 4 kB / 416.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.3737, allocations: 51.91 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.3737, allocations: 11.97 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.3739, allocations: 27.83 kB / 416.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.3739, allocations: 12 kB / 416.7 MB, free: 9.23 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.0001638/0.3741, allocations: 145.9 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.3743, allocations: 105.5 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.623e-05/0.3744, allocations: 20.66 kB / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3744, allocations: 11.88 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3744, allocations: 0 / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3744, allocations: 3.938 kB / 416.9 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008367/0.3753, allocations: 494.2 kB / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3753, allocations: 0 / 417.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.3755, allocations: 39.91 kB / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.3755, allocations: 0 / 417.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.3755, allocations: 15.92 kB / 417.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.3755, allocations: 0 / 417.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3755, allocations: 0 / 417.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006132/0.3762, allocations: 327.9 kB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.3763, allocations: 85.02 kB / 417.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3763, allocations: 15.88 kB / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.3765, allocations: 19.97 kB / 417.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/0.3766, allocations: 11.98 kB / 417.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.3766, allocations: 11.98 kB / 417.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.661e-05/0.3767, allocations: 114.3 kB / 418 MB, free: 7.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3767, allocations: 0 / 418 MB, free: 7.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00034/0.3771, allocations: 43.84 kB / 418.1 MB, free: 7.68 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.001202/0.3783, allocations: 0.9589 MB / 419 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005806/0.3789, allocations: 246.5 kB / 419.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3789, allocations: 0.75 kB / 419.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001916/0.3791, allocations: 67.89 kB / 419.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.3796, allocations: 83.16 kB / 419.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.3826, allocations: 2.153 MB / 421.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.3829, allocations: 0.7322 MB / 422.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.592e-05/0.383, allocations: 13.53 kB / 422.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3831, allocations: 55.41 kB / 422.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3831, allocations: 0 / 422.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.4092, allocations: 3.841 MB / 426.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.744, allocations: 4.062 kB / 426.2 MB, free: 15.46 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/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,previous(rotationalClock.changed.u),rotationalClock.abs1.generateEvent,rotationalClock.abs1.u,rotationalClock.abs1.y,rotationalClock.abs2.generateEvent,rotationalClock.abs2.u,rotationalClock.abs2.y,rotationalClock.angle,rotationalClock.angular_offset.u,rotationalClock.angular_offset.y,rotationalClock.angular_offset.y_start,rotationalClock.cast.u,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.direction_sign.u,rotationalClock.direction_sign.y,rotationalClock.less.u1,rotationalClock.less.u2,rotationalClock.less.y,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.sub.u1,rotationalClock.sub.u2,rotationalClock.sub.y,rotationalClock.trigger_interval,rotationalClock.update_direction.u,rotationalClock.update_direction.y,rotationalClock.update_offset.u,rotationalClock.update_offset.y,rotationalClock.useSolver,rotationalClock.y_clock.u,rotationalClock.y_clock.useSolver,sample_angle.u,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,trigger_interval_input.y