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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009507/0.0009507, allocations: 76.36 kB / 20.67 MB, free: 3.883 MB / 18.57 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.0008845/0.0008845, allocations: 164.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8634/0.8634, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.705e-05, allocations: 6.984 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002154/0.002171, allocations: 1.962 MB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009117/0.003083, allocations: 0.6738 MB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.003194, allocations: 7.938 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.556e-05/0.003239, allocations: 15.8 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.003341, allocations: 27.67 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.003752, allocations: 127.6 kB / 327.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.004098, allocations: 200 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.004254, allocations: 72.88 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.004475, allocations: 127.6 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.046e-05/0.004565, allocations: 71.83 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.004591, allocations: 20 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.258e-05/0.004634, allocations: 20 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.223e-05/0.004666, allocations: 47.83 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.004719, allocations: 59.83 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.004942, allocations: 235.2 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.004948, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004949, allocations: 0 / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004954, allocations: 4 kB / 328.1 MB, free: 12.25 MB / 298.7 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.0006047/0.005558, allocations: 473 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.005602, allocations: 11.98 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.005646, allocations: 54.67 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.005785, allocations: 32.78 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.006025, allocations: 174 kB / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/0.006088, allocations: 76.3 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.00611, allocations: 12.38 kB / 329 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.00664, allocations: 368.1 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.006651, allocations: 0 / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.00667, allocations: 4 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.006677, allocations: 8 kB / 329.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.006913, allocations: 127.9 kB / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005006/0.007414, allocations: 388.5 kB / 329.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.007708, allocations: 193.1 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.007848, allocations: 109.8 kB / 330.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.007874, allocations: 3.938 kB / 330.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.008101, allocations: 145.1 kB / 330.3 MB, free: 9.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.008103, allocations: 0 / 330.3 MB, free: 9.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004711/0.008574, allocations: 281.3 kB / 330.6 MB, free: 9.637 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.008644, allocations: 93.05 kB / 330.6 MB, free: 9.527 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/0.008735, allocations: 159.2 kB / 330.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.008752, allocations: 29.7 kB / 330.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.008811, allocations: 116.5 kB / 330.9 MB, free: 9.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.008833, allocations: 31.73 kB / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.217e-05/0.008885, allocations: 41.7 kB / 331 MB, free: 9.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.486e-05/0.00896, allocations: 326.8 kB / 331.3 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.00907, allocations: 81.66 kB / 331.4 MB, free: 8.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.009183, allocations: 103.9 kB / 331.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.009365, allocations: 135.4 kB / 331.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.009367, allocations: 0 / 331.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002615/0.009628, allocations: 232.9 kB / 331.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.009656, allocations: 41.69 kB / 331.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.009662, allocations: 8.016 kB / 331.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.009675, allocations: 0 / 331.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.654e-05/0.009761, allocations: 23.98 kB / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.009766, allocations: 0 / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.009838, allocations: 23.92 kB / 332 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.009851, allocations: 8 kB / 332 MB, free: 8.098 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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 8.856e-05/0.00994, allocations: 137.7 kB / 332.1 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.01005, allocations: 105.5 kB / 332.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.938e-05/0.01009, allocations: 24.77 kB / 332.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01009, allocations: 4 kB / 332.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.01009, allocations: 4 kB / 332.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.0101, allocations: 0 / 332.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004225/0.01052, allocations: 450.2 kB / 332.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.01052, allocations: 3.984 kB / 332.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.643e-05/0.01062, allocations: 39.97 kB / 332.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01062, allocations: 3.938 kB / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.01063, allocations: 8 kB / 332.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01063, allocations: 0 / 332.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01064, allocations: 0 / 332.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.01095, allocations: 324.1 kB / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.529e-05/0.01096, allocations: 19.84 kB / 333.1 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.01098, allocations: 7.984 kB / 333.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.01107, allocations: 19.98 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.01112, allocations: 19.91 kB / 333.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.01113, allocations: 16 kB / 333.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.034e-05/0.01118, allocations: 115.1 kB / 333.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01118, allocations: 0 / 333.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001751/0.01135, allocations: 32 kB / 333.3 MB, free: 6.707 MB / 298.7 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.0006399/0.01199, allocations: 0.9634 MB / 334.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.01242, allocations: 229 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01242, allocations: 0 / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.783e-05/0.01252, allocations: 59.89 kB / 334.5 MB, free: 5.414 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.01281, allocations: 74.48 kB / 334.6 MB, free: 5.344 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.01435, allocations: 2.026 MB / 336.6 MB, free: 3.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.89e-05/0.01442, allocations: 120.4 kB / 336.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.361e-05/0.01447, allocations: 9.141 kB / 336.8 MB, free: 3.043 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/0.01455, allocations: 52.47 kB / 336.8 MB, free: 2.992 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01455, allocations: 0 / 336.8 MB, free: 2.992 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.03005, allocations: 4.432 MB / 341.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.634/6.664, allocations: 8 kB / 341.2 MB, free: 14.67 MB / 314.7 MB " [Timeout remaining time 653] (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 --stepSize=0.000392542 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: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 [Calling sys.exit(0), Time elapsed: 8.29820501897484]