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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 109.5 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 185.7 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.86 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2835, allocations: 52.18 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004026/0.2875, allocations: 2.017 MB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2889, allocations: 0.6505 MB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.289, allocations: 0 / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.485e-05/0.2891, allocations: 19.73 kB / 425.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.2892, allocations: 23.75 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.2896, allocations: 111.8 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002932/0.2899, allocations: 204 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.2901, allocations: 72.77 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.2903, allocations: 87.75 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.2904, allocations: 91.61 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.2905, allocations: 19.94 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.003e-05/0.2905, allocations: 24 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.193e-05/0.2905, allocations: 47.84 kB / 426 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.443e-05/0.2906, allocations: 83.58 kB / 426.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.2909, allocations: 219.5 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2909, allocations: 3.938 kB / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2909, allocations: 0 / 426.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2909, allocations: 0 / 426.3 MB, free: 10.96 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.0008528/0.2918, allocations: 465.2 kB / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2918, allocations: 16.03 kB / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/0.2919, allocations: 46.73 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/0.2919, allocations: 20.84 kB / 426.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.2922, allocations: 178.8 kB / 427 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.2923, allocations: 72.05 kB / 427 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.2924, allocations: 12 kB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007248/0.2931, allocations: 334.9 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2931, allocations: 4 kB / 427.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.2931, allocations: 4 kB / 427.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.2931, allocations: 4 kB / 427.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000436/0.2936, allocations: 127.9 kB / 427.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007126/0.2943, allocations: 436.4 kB / 428 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.2948, allocations: 193.1 kB / 428.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.295, allocations: 101.6 kB / 428.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.295, allocations: 0 / 428.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.2954, allocations: 119.5 kB / 428.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.2954, allocations: 0 / 428.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007982/0.2962, allocations: 286 kB / 428.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.327e-05/0.2962, allocations: 85.33 kB / 428.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.2964, allocations: 156 kB / 428.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.2964, allocations: 37.7 kB / 428.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.2965, allocations: 112.5 kB / 429 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/0.2966, allocations: 47.66 kB / 429.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.2966, allocations: 41.7 kB / 429.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.2968, allocations: 330.8 kB / 429.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.297, allocations: 60.19 kB / 429.5 MB, free: 7.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.2972, allocations: 155.8 kB / 429.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.2977, allocations: 223.9 kB / 429.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2977, allocations: 4 kB / 429.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000554/0.2982, allocations: 278.8 kB / 430.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.2983, allocations: 37.69 kB / 430.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2983, allocations: 4 kB / 430.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2983, allocations: 4 kB / 430.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.2985, allocations: 39.91 kB / 430.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.2985, allocations: 11.88 kB / 430.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.2987, allocations: 35.83 kB / 430.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.2987, allocations: 12 kB / 430.3 MB, free: 6.605 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.0001394/0.2988, allocations: 149.5 kB / 430.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.299, allocations: 113.5 kB / 430.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.2991, allocations: 16.72 kB / 430.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2991, allocations: 4 kB / 430.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2991, allocations: 3.938 kB / 430.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.2991, allocations: 3.984 kB / 430.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007215/0.2998, allocations: 461.4 kB / 431 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2998, allocations: 0 / 431 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.3, allocations: 39.97 kB / 431 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3, allocations: 7.938 kB / 431.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.3, allocations: 11.86 kB / 431.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3, allocations: 0 / 431.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-06/0.3, allocations: 7.938 kB / 431.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/0.3006, allocations: 323.5 kB / 431.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/0.3006, allocations: 27.78 kB / 431.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.3006, allocations: 0 / 431.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.3008, allocations: 19.98 kB / 431.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.3009, allocations: 15.97 kB / 431.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.3009, allocations: 11.98 kB / 431.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.754e-05/0.301, allocations: 113 kB / 431.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.301, allocations: 0 / 431.6 MB, free: 5.219 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003021/0.3013, allocations: 32 kB / 431.6 MB, free: 5.188 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.001174/0.3025, allocations: 0.9706 MB / 432.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005474/0.303, allocations: 235.7 kB / 432.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.303, allocations: 128 / 432.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.3032, allocations: 55.97 kB / 432.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.3036, allocations: 67.92 kB / 432.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.3065, allocations: 2.14 MB / 435.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3069, allocations: 0.7321 MB / 435.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.796e-05/0.3069, allocations: 13.42 kB / 435.8 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.307, allocations: 51.41 kB / 435.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.307, allocations: 0 / 435.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03234/0.3394, allocations: 3.986 MB / 439.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.49, allocations: 11.88 kB / 439.9 MB, free: 12.84 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000392542 --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) [Timeout 52.5] 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) [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.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: 14.00027395086363]