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.001686/0.001686, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002085/0.002085, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 67.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3203, allocations: 50.54 MB / 408.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00379/0.3242, allocations: 1.991 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.3256, allocations: 0.7011 MB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.3257, allocations: 4 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.411e-05/0.3258, allocations: 19.73 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.326, allocations: 19.75 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.3265, allocations: 123.7 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.3268, allocations: 212 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.3271, allocations: 96.3 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000334/0.3274, allocations: 87.69 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.3276, allocations: 95.53 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.3276, allocations: 24 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.3277, allocations: 20 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.3278, allocations: 39.91 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.3279, allocations: 91.52 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.3283, allocations: 221.9 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3283, allocations: 0 / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3283, allocations: 0 / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.3283, allocations: 0 / 412.5 MB, free: 13.74 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.001019/0.3293, allocations: 0.5335 MB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.3294, allocations: 8.031 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.787e-05/0.3295, allocations: 54.73 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.3297, allocations: 32.78 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.33, allocations: 240 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.723e-05/0.3301, allocations: 54.2 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.3302, allocations: 16 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007652/0.3309, allocations: 327.1 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.331, allocations: 3.984 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.331, allocations: 8 kB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.331, allocations: 8 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004618/0.3315, allocations: 127.8 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000777/0.3323, allocations: 469.3 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005788/0.3329, allocations: 201.2 kB / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.3332, allocations: 101.7 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3332, allocations: 7.938 kB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.3336, allocations: 119.5 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.474e-06/0.3336, allocations: 0 / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009482/0.3345, allocations: 286.1 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.3347, allocations: 97.05 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.3348, allocations: 150.4 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.3349, allocations: 29.7 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.335, allocations: 112.6 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.3351, allocations: 43.8 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.3352, allocations: 41.7 kB / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.3354, allocations: 334.8 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.3356, allocations: 64.19 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.3359, allocations: 146.6 kB / 416.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004916/0.3364, allocations: 231.8 kB / 416.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3364, allocations: 0 / 416.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006552/0.3371, allocations: 281.7 kB / 416.6 MB, free: 9.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.3371, allocations: 37.7 kB / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3371, allocations: 0 / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.3372, allocations: 4 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.3374, allocations: 43.91 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.3374, allocations: 7.984 kB / 416.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.3376, allocations: 40.16 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3376, allocations: 11.98 kB / 416.7 MB, free: 9.168 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.0001721/0.3378, allocations: 138 kB / 416.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000225/0.338, allocations: 113.5 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.813e-05/0.3381, allocations: 16.72 kB / 417 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.3381, allocations: 15.91 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3382, allocations: 0 / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3382, allocations: 3.938 kB / 417 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000837/0.339, allocations: 494.2 kB / 417.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.339, allocations: 0 / 417.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.3392, allocations: 47.91 kB / 417.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3392, allocations: 0 / 417.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.3393, allocations: 7.938 kB / 417.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3393, allocations: 0 / 417.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.3393, allocations: 11.98 kB / 417.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006443/0.34, allocations: 321.4 kB / 417.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.3401, allocations: 100.9 kB / 418 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.425e-05/0.3401, allocations: 7.938 kB / 418 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.3403, allocations: 23.98 kB / 418 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.3404, allocations: 15.97 kB / 418 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.3404, allocations: 4 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.195e-05/0.3405, allocations: 118.3 kB / 418.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3405, allocations: 0 / 418.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.3408, allocations: 32 kB / 418.2 MB, free: 7.613 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.001325/0.3421, allocations: 0.9551 MB / 419.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006581/0.3428, allocations: 255.1 kB / 419.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3428, allocations: 0 / 419.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.3431, allocations: 67.83 kB / 419.4 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.3435, allocations: 68.8 kB / 419.5 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003169/0.3467, allocations: 2.161 MB / 421.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.3471, allocations: 0.7283 MB / 422.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.115e-05/0.3472, allocations: 13.55 kB / 422.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.3474, allocations: 59.42 kB / 422.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3474, allocations: 0 / 422.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.374, allocations: 3.781 MB / 426.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.597/8.971, allocations: 7.156 kB / 426.3 MB, free: 15.45 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.1.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