Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 109.6 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001695, allocations: 189.4 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 44.02 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.302, allocations: 49.45 MB / 400.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003626/0.3057, allocations: 1.977 MB / 402.2 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.307, allocations: 0.631 MB / 402.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3071, allocations: 0 / 402.8 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.404e-05/0.3072, allocations: 27.72 kB / 402.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.3073, allocations: 19.75 kB / 402.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.3078, allocations: 109.8 kB / 403 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003395/0.3081, allocations: 212 kB / 403.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.3084, allocations: 92.3 kB / 403.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.3086, allocations: 91.62 kB / 403.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.3087, allocations: 91.59 kB / 403.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.3088, allocations: 20 kB / 403.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.338e-05/0.3088, allocations: 24 kB / 403.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.592e-05/0.3089, allocations: 39.84 kB / 403.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.309, allocations: 95.45 kB / 403.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.3093, allocations: 210.1 kB / 403.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.3093, allocations: 4 kB / 403.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.38e-06/0.3093, allocations: 0 / 403.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3093, allocations: 3.938 kB / 403.9 MB, free: 5.309 MB / 318.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.0009528/0.3103, allocations: 0.5257 MB / 404.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3103, allocations: 12.03 kB / 404.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.395e-05/0.3104, allocations: 50.73 kB / 404.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.3104, allocations: 20.84 kB / 404.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.3108, allocations: 240.6 kB / 404.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.648e-05/0.3109, allocations: 46.34 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.3109, allocations: 20 kB / 404.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007241/0.3117, allocations: 327 kB / 405.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.3117, allocations: 3.938 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.3117, allocations: 4 kB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.3117, allocations: 4 kB / 405.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.3122, allocations: 127.9 kB / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000722/0.3129, allocations: 461.4 kB / 405.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.3135, allocations: 205.1 kB / 405.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.3137, allocations: 101.7 kB / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.3138, allocations: 4 kB / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.3141, allocations: 119.5 kB / 406.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.003e-06/0.3141, allocations: 0 / 406.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008493/0.315, allocations: 286 kB / 406.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.761e-05/0.3151, allocations: 93.09 kB / 406.5 MB, free: 2.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.3152, allocations: 152.6 kB / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.3153, allocations: 33.7 kB / 406.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.491e-05/0.3154, allocations: 120.5 kB / 406.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.3154, allocations: 35.72 kB / 406.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/0.3155, allocations: 45.7 kB / 406.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3157, allocations: 330.8 kB / 407.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.3159, allocations: 64.19 kB / 407.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.3162, allocations: 147.4 kB / 407.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.3166, allocations: 235.8 kB / 407.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3167, allocations: 0 / 407.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005943/0.3173, allocations: 271.3 kB / 407.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.3173, allocations: 32.05 kB / 407.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.3173, allocations: 4 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3173, allocations: 4 kB / 407.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3176, allocations: 47.91 kB / 408 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.3176, allocations: 11.88 kB / 408 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.3178, allocations: 39.8 kB / 408 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.3178, allocations: 8 kB / 408 MB, free: 0.7773 MB / 318.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.0001643/0.318, allocations: 145.8 kB / 408.2 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.3182, allocations: 105.5 kB / 408.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.469e-05/0.3183, allocations: 24.7 kB / 408.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.3183, allocations: 4 kB / 408.3 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3183, allocations: 3.938 kB / 408.3 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3183, allocations: 0 / 408.3 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008331/0.3191, allocations: 498.4 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.3192, allocations: 7.938 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.3194, allocations: 35.97 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.3194, allocations: 3.938 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.3194, allocations: 8 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.3194, allocations: 3.984 kB / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3194, allocations: 0 / 408.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.32, allocations: 324 kB / 409.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.346e-05/0.3201, allocations: 100.9 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.3202, allocations: 8 kB / 409.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.3204, allocations: 15.98 kB / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.3205, allocations: 15.98 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3205, allocations: 11.98 kB / 409.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.354e-05/0.3206, allocations: 106.1 kB / 409.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3206, allocations: 0 / 409.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.3209, allocations: 39.98 kB / 409.4 MB, free: 15.23 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.001278/0.3222, allocations: 0.972 MB / 410.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005901/0.3228, allocations: 243.7 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3228, allocations: 128 / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.323, allocations: 63.95 kB / 410.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.3234, allocations: 72.73 kB / 410.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.3266, allocations: 2.147 MB / 412.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.3271, allocations: 0.736 MB / 413.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.137e-05/0.3272, allocations: 13.42 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.3273, allocations: 51.42 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3273, allocations: 3.938 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.3549, allocations: 3.727 MB / 417.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.677/9.032, allocations: 13.89 kB / 417.5 MB, free: 7.129 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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