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.001352/0.001352, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001717/0.001717, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 59.47 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09639, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003917/0.1003, allocations: 2.038 MB / 358.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.1018, allocations: 0.6896 MB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.102, allocations: 7.938 kB / 359.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.046e-05/0.1021, allocations: 11.86 kB / 359.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.1022, allocations: 19.8 kB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.1026, allocations: 115.5 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.1029, allocations: 184 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.1031, allocations: 92.28 kB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.1033, allocations: 83.62 kB / 360.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.1035, allocations: 79.61 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.1035, allocations: 8 kB / 360.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.1036, allocations: 16 kB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.046e-05/0.1036, allocations: 39.83 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.728e-05/0.1037, allocations: 79.53 kB / 360.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.104, allocations: 211.5 kB / 360.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.104, allocations: 4 kB / 360.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.104, allocations: 0 / 360.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.104, allocations: 0 / 360.5 MB, free: 10.72 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.0009595/0.105, allocations: 0.5359 MB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1051, allocations: 8.031 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.106e-05/0.1051, allocations: 46.73 kB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.1053, allocations: 32.73 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.1056, allocations: 241.5 kB / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.1057, allocations: 46.34 kB / 361.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.1058, allocations: 16 kB / 361.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007546/0.1065, allocations: 329.9 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1065, allocations: 0 / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1066, allocations: 4 kB / 361.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.1066, allocations: 4 kB / 361.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.107, allocations: 131.9 kB / 361.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007809/0.1078, allocations: 461.2 kB / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.1084, allocations: 213.1 kB / 362.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.1086, allocations: 101.7 kB / 362.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.1087, allocations: 8.234 kB / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004161/0.1091, allocations: 115.3 kB / 362.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.364e-06/0.1091, allocations: 4 kB / 362.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008387/0.11, allocations: 289.2 kB / 363.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.1101, allocations: 85.11 kB / 363.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.1102, allocations: 153.7 kB / 363.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.1102, allocations: 33.7 kB / 363.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.1103, allocations: 116.4 kB / 363.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.1104, allocations: 39.55 kB / 363.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.1104, allocations: 49.69 kB / 363.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1106, allocations: 326.8 kB / 363.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1108, allocations: 64.19 kB / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.111, allocations: 151.8 kB / 364.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004256/0.1115, allocations: 226.2 kB / 364.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1115, allocations: 0 / 364.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005628/0.1121, allocations: 279.1 kB / 364.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.96e-05/0.1121, allocations: 33.7 kB / 364.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.1121, allocations: 4 kB / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1121, allocations: 4 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.1123, allocations: 43.91 kB / 364.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1124, allocations: 11.92 kB / 364.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.1126, allocations: 31.77 kB / 364.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.1126, allocations: 12 kB / 364.7 MB, free: 6.18 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.000135/0.1127, allocations: 141.8 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.1129, allocations: 109.4 kB / 365 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.073e-05/0.113, allocations: 24.7 kB / 365 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.113, allocations: 0 / 365 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.113, allocations: 8 kB / 365 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.113, allocations: 3.938 kB / 365 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007509/0.1138, allocations: 0.4903 MB / 365.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1138, allocations: 4 kB / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.114, allocations: 35.97 kB / 365.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.114, allocations: 0 / 365.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.114, allocations: 11.92 kB / 365.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.1141, allocations: 4 kB / 365.5 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1141, allocations: 3.938 kB / 365.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005971/0.1147, allocations: 324 kB / 365.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.1147, allocations: 92.86 kB / 366 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.1148, allocations: 11.94 kB / 366 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.115, allocations: 15.97 kB / 366 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.1151, allocations: 15.98 kB / 366 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.1151, allocations: 7.984 kB / 366 MB, free: 4.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.1152, allocations: 114.3 kB / 366.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1152, allocations: 4 kB / 366.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005536/0.1158, allocations: 32 kB / 366.1 MB, free: 4.637 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.001222/0.117, allocations: 0.9668 MB / 367.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005588/0.1176, allocations: 243.7 kB / 367.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1176, allocations: 7.938 kB / 367.4 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.1178, allocations: 64.02 kB / 367.4 MB, free: 3.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.1183, allocations: 64.48 kB / 367.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.1213, allocations: 2.211 MB / 369.7 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1216, allocations: 0.7286 MB / 370.4 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.419e-05/0.1217, allocations: 9.562 kB / 370.4 MB, free: 124 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1219, allocations: 51.41 kB / 370.5 MB, free: 72 kB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1219, allocations: 0 / 370.5 MB, free: 72 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1743/0.2962, allocations: 3.389 MB / 373.9 MB, free: 20.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.2964, allocations: 228.5 kB / 374.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.16, allocations: 0 / 374.1 MB, free: 19.98 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