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.0007186/0.0007186, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008536/0.0008537, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001964/0.0001964, allocations: 4 kB / 307.8 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07997/0.08018, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002069/0.08228, allocations: 1.692 MB / 361.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.08345, allocations: 0.6662 MB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.0836, allocations: 0 / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.08365, allocations: 15.84 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.08377, allocations: 15.86 kB / 361.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.08416, allocations: 115.8 kB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000187/0.08436, allocations: 188 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.08454, allocations: 88.3 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.08471, allocations: 67.7 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.263e-05/0.08481, allocations: 59.62 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.08484, allocations: 11.94 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.027e-05/0.08489, allocations: 12 kB / 362.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.08492, allocations: 27.89 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.634e-05/0.085, allocations: 93.25 kB / 362.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.08521, allocations: 203.5 kB / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.08522, allocations: 0 / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.08523, allocations: 0 / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.08524, allocations: 0 / 362.6 MB, free: 9.719 MB / 302.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.0007168/0.08596, allocations: 0.5064 MB / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.086, allocations: 12.03 kB / 363.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.288e-05/0.08607, allocations: 50.73 kB / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.08623, allocations: 36.67 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.08647, allocations: 231.9 kB / 363.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.911e-05/0.08654, allocations: 42.34 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.08658, allocations: 16 kB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.08723, allocations: 342.9 kB / 363.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.08725, allocations: 4 kB / 363.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.08728, allocations: 4 kB / 363.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.08729, allocations: 4 kB / 363.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004133/0.08771, allocations: 151.8 kB / 364 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006021/0.08832, allocations: 461.2 kB / 364.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004858/0.08882, allocations: 213.1 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.08907, allocations: 113.7 kB / 364.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.08911, allocations: 12.05 kB / 364.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.0894, allocations: 131.5 kB / 364.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 3.477e-06/0.08942, allocations: 0 / 364.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007697/0.09019, allocations: 301.9 kB / 365.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.09027, allocations: 93.27 kB / 365.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.09039, allocations: 151.2 kB / 365.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.09042, allocations: 33.7 kB / 365.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.961e-05/0.09048, allocations: 108.5 kB / 365.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.09053, allocations: 39.55 kB / 365.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.09058, allocations: 33.7 kB / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.09068, allocations: 334.8 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.09089, allocations: 68.19 kB / 366 MB, free: 6.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.09113, allocations: 151.8 kB / 366.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/0.09155, allocations: 254.1 kB / 366.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.09157, allocations: 0 / 366.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005491/0.09212, allocations: 291.1 kB / 366.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.09217, allocations: 43.88 kB / 366.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.09218, allocations: 7.984 kB / 366.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.0922, allocations: 4 kB / 366.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.09239, allocations: 43.91 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.09241, allocations: 4 kB / 366.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.09259, allocations: 47.7 kB / 366.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.09262, allocations: 11.98 kB / 366.9 MB, free: 5.078 MB / 302.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.0001211/0.09274, allocations: 137.8 kB / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.09292, allocations: 109.5 kB / 367.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.871e-05/0.09299, allocations: 24.66 kB / 367.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.093, allocations: 3.938 kB / 367.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.09301, allocations: 8 kB / 367.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.09302, allocations: 7.922 kB / 367.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006632/0.09369, allocations: 0.4905 MB / 367.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.09371, allocations: 8 kB / 367.7 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.09389, allocations: 47.89 kB / 367.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.09391, allocations: 4 kB / 367.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.09393, allocations: 3.938 kB / 367.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.09394, allocations: 4 kB / 367.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.09394, allocations: 0 / 367.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000537/0.09448, allocations: 343.8 kB / 368 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.09454, allocations: 92.86 kB / 368.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.09458, allocations: 15.92 kB / 368.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/0.09476, allocations: 23.98 kB / 368.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.09483, allocations: 19.97 kB / 368.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.09485, allocations: 4 kB / 368.2 MB, free: 3.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.913e-05/0.09493, allocations: 115.2 kB / 368.3 MB, free: 3.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09493, allocations: 0 / 368.3 MB, free: 3.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.09522, allocations: 32 kB / 368.3 MB, free: 3.492 MB / 302.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.001033/0.09626, allocations: 0.9815 MB / 369.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005123/0.09678, allocations: 263.2 kB / 369.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.09679, allocations: 0 / 369.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.09698, allocations: 72.53 kB / 369.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.0974, allocations: 71.94 kB / 369.7 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1381/0.2355, allocations: 2.247 MB / 372 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001552/0.2357, allocations: 0.73 MB / 372.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.2358, allocations: 14.77 kB / 372.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.236, allocations: 51.61 kB / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.236, allocations: 0 / 372.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.473/2.709, allocations: 3.306 MB / 376.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/2.709, allocations: 230.4 kB / 376.3 MB, free: 17.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.54/5.249, allocations: 0 / 376.3 MB, free: 17.38 MB / 302.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.0.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