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: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001567, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 59.62 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.1007, allocations: 50.52 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00312/0.1038, allocations: 1.993 MB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.105, allocations: 0.6973 MB / 361.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.1051, allocations: 4 kB / 361.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.648e-05/0.1052, allocations: 19.73 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.1053, allocations: 27.73 kB / 361.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.1057, allocations: 119.7 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.106, allocations: 208 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.1062, allocations: 96.3 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.1064, allocations: 95.69 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.1066, allocations: 87.61 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.226e-05/0.1066, allocations: 24 kB / 362.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.493e-05/0.1067, allocations: 31.92 kB / 362.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.137e-05/0.1067, allocations: 35.91 kB / 362.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.7e-05/0.1068, allocations: 87.52 kB / 362.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.107, allocations: 231.2 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1071, allocations: 0 / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1071, allocations: 0 / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.1071, allocations: 0 / 362.6 MB, free: 9.602 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.0007862/0.1079, allocations: 0.5221 MB / 363.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1079, allocations: 12.03 kB / 363.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.1081, allocations: 36.58 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.1084, allocations: 247.6 kB / 363.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.734e-05/0.1084, allocations: 38.59 kB / 363.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.1085, allocations: 23.94 kB / 363.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006293/0.1091, allocations: 333.6 kB / 363.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1091, allocations: 0 / 363.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.1092, allocations: 4 kB / 363.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1092, allocations: 4 kB / 363.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.1096, allocations: 135.8 kB / 364 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000625/0.1102, allocations: 465.2 kB / 364.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/0.1107, allocations: 209.1 kB / 364.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.1109, allocations: 97.67 kB / 364.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.111, allocations: 4 kB / 364.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.1112, allocations: 123.2 kB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.1112, allocations: 0 / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00074/0.112, allocations: 281.4 kB / 365.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.1121, allocations: 93.05 kB / 365.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.1122, allocations: 154.4 kB / 365.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.1122, allocations: 29.7 kB / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.1123, allocations: 112.5 kB / 365.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.1123, allocations: 43.61 kB / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.092e-05/0.1124, allocations: 45.69 kB / 365.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1125, allocations: 330.8 kB / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.1127, allocations: 60.19 kB / 366 MB, free: 5.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1129, allocations: 149.5 kB / 366.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.1133, allocations: 231.7 kB / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1133, allocations: 0 / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005016/0.1138, allocations: 282.9 kB / 366.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.1139, allocations: 33.7 kB / 366.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1139, allocations: 0 / 366.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.1139, allocations: 4 kB / 366.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.1141, allocations: 43.91 kB / 366.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1141, allocations: 4 kB / 366.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.1143, allocations: 40.06 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.1143, allocations: 15.94 kB / 366.8 MB, free: 5.105 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.0001127/0.1144, allocations: 133.8 kB / 366.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.1146, allocations: 110.3 kB / 367 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.609e-05/0.1147, allocations: 20.7 kB / 367 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1147, allocations: 4 kB / 367 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1147, allocations: 3.938 kB / 367 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1147, allocations: 0 / 367 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006282/0.1153, allocations: 498.1 kB / 367.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1154, allocations: 0 / 367.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.1155, allocations: 43.91 kB / 367.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.1156, allocations: 3.984 kB / 367.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.1156, allocations: 11.98 kB / 367.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1156, allocations: 3.938 kB / 367.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1156, allocations: 8 kB / 367.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005329/0.1161, allocations: 327.2 kB / 367.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/0.1162, allocations: 92.86 kB / 368 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.1162, allocations: 11.94 kB / 368 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.1164, allocations: 23.86 kB / 368 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.1165, allocations: 19.97 kB / 368 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.1165, allocations: 4 kB / 368 MB, free: 3.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.111e-05/0.1166, allocations: 115.2 kB / 368.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1166, allocations: 0 / 368.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.1169, allocations: 36 kB / 368.2 MB, free: 3.559 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.0001299/0.117, allocations: 107.2 kB / 368.3 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.1176, allocations: 251 kB / 368.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1176, allocations: 0 / 368.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.1178, allocations: 55.97 kB / 368.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.1182, allocations: 63.94 kB / 368.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.1188, allocations: 333.9 kB / 369 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.119, allocations: 0.7244 MB / 369.7 MB, free: 1.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.909e-05/0.1191, allocations: 21.48 kB / 369.7 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.856e-05/0.1192, allocations: 19.44 kB / 369.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1192, allocations: 0 / 369.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of Templates: time 0.1742/0.2934, allocations: 1.94 MB / 371.7 MB, free: 20.52 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,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