Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002213/0.002213, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 51.92 kB / 377.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3111, allocations: 53.36 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003665/0.3148, allocations: 2.029 MB / 433.2 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3161, allocations: 0.7089 MB / 433.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.3163, allocations: 4 kB / 433.9 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.942e-05/0.3163, allocations: 23.73 kB / 433.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.3164, allocations: 27.72 kB / 433.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.3169, allocations: 123.7 kB / 434 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.3172, allocations: 208 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.3174, allocations: 74.5 kB / 434.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.3176, allocations: 91.69 kB / 434.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.3178, allocations: 91.5 kB / 434.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.3178, allocations: 24 kB / 434.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.934e-05/0.3179, allocations: 35.97 kB / 434.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.3179, allocations: 31.92 kB / 434.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.428e-05/0.318, allocations: 87.53 kB / 434.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.3184, allocations: 231 kB / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3184, allocations: 0 / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3184, allocations: 0 / 434.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.3184, allocations: 0 / 434.9 MB, free: 3.105 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.0009014/0.3193, allocations: 469.3 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3193, allocations: 8.031 kB / 435.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.108e-05/0.3194, allocations: 58.67 kB / 435.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.3196, allocations: 32.78 kB / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.3199, allocations: 174.8 kB / 435.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.466e-05/0.32, allocations: 72.03 kB / 435.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.32, allocations: 23.94 kB / 435.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000754/0.3208, allocations: 331 kB / 436 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3208, allocations: 0 / 436 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.3208, allocations: 4 kB / 436 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.3208, allocations: 8 kB / 436 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.3212, allocations: 127.8 kB / 436.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007153/0.3219, allocations: 432.4 kB / 436.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.3225, allocations: 193.1 kB / 436.8 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.3227, allocations: 97.67 kB / 436.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.3228, allocations: 3.984 kB / 436.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003143/0.3231, allocations: 123.4 kB / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.3231, allocations: 0 / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008309/0.3239, allocations: 281.4 kB / 437.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/0.324, allocations: 93.05 kB / 437.4 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.3241, allocations: 155.7 kB / 437.5 MB, free: 260 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.3242, allocations: 33.7 kB / 437.6 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.029e-05/0.3243, allocations: 112.5 kB / 437.7 MB, free: 104 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.407e-05/0.3243, allocations: 39.8 kB / 437.7 MB, free: 64 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.3244, allocations: 45.69 kB / 437.7 MB, free: 12 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3246, allocations: 330.8 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.3248, allocations: 72.12 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.325, allocations: 147.5 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004436/0.3255, allocations: 237.8 kB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3255, allocations: 4 kB / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005842/0.3261, allocations: 274.9 kB / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.3261, allocations: 33.7 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.3261, allocations: 4 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.3261, allocations: 4 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.3263, allocations: 43.91 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3263, allocations: 8.328 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.3265, allocations: 35.81 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.3265, allocations: 12 kB / 438.9 MB, free: 14.73 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.0001597/0.3267, allocations: 145.7 kB / 439.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.3269, allocations: 109.5 kB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.882e-05/0.327, allocations: 24.7 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.327, allocations: 4 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.327, allocations: 0 / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.327, allocations: 3.938 kB / 439.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008118/0.3278, allocations: 469.4 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3278, allocations: 0 / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.328, allocations: 47.91 kB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.328, allocations: 0 / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.328, allocations: 15.92 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.328, allocations: 0 / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.328, allocations: 4 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.3287, allocations: 324 kB / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.3287, allocations: 19.78 kB / 440.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.3288, allocations: 11.94 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.3289, allocations: 15.98 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.509e-05/0.329, allocations: 19.97 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.329, allocations: 11.98 kB / 440.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.983e-05/0.3291, allocations: 107.3 kB / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3291, allocations: 0 / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.3294, allocations: 36 kB / 440.3 MB, free: 13.29 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.001235/0.3307, allocations: 0.954 MB / 441.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005824/0.3312, allocations: 239 kB / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3312, allocations: 0 / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.3314, allocations: 63.89 kB / 441.5 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.3319, allocations: 74.77 kB / 441.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.335, allocations: 2.148 MB / 443.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.3354, allocations: 0.7323 MB / 444.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.833e-05/0.3355, allocations: 21.47 kB / 444.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.3356, allocations: 55.41 kB / 444.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3356, allocations: 0 / 444.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/0.3707, allocations: 4.031 MB / 448.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.43, allocations: 0 / 448.6 MB, free: 4.902 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --stepSize=0.000392542 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 15.080156337004155]