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.0009539/0.000954, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000994/0.0009939, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002355, allocations: 4 kB / 306.6 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 51.5 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002149/0.1124, allocations: 1.63 MB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1135, allocations: 0.6353 MB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.219e-05/0.1136, allocations: 7.938 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.1136, allocations: 11.86 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.335e-05/0.1137, allocations: 15.97 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.1142, allocations: 87.7 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.1143, allocations: 108.3 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.1145, allocations: 79.05 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.1146, allocations: 63.7 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.32e-05/0.1147, allocations: 63.67 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.1148, allocations: 4 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.1148, allocations: 12 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.1148, allocations: 27.83 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.884e-05/0.1149, allocations: 45.64 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.115, allocations: 155.9 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1151, allocations: 0 / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1151, allocations: 4 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.1151, allocations: 0 / 361 MB, free: 10.98 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.00075/0.1158, allocations: 0.5049 MB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1159, allocations: 8.031 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.116, allocations: 39.7 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.1163, allocations: 226.3 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.33e-05/0.1164, allocations: 42.03 kB / 361.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.1164, allocations: 19.95 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006666/0.1171, allocations: 335.3 kB / 362.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1171, allocations: 0 / 362.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.1171, allocations: 4 kB / 362.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1172, allocations: 4 kB / 362.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.1176, allocations: 148.4 kB / 362.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006564/0.1182, allocations: 466 kB / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004817/0.1187, allocations: 209.2 kB / 363 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1188, allocations: 12.05 kB / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.1191, allocations: 131.5 kB / 363.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.512e-06/0.1191, allocations: 0 / 363.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007701/0.1199, allocations: 302.1 kB / 363.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.12, allocations: 89.11 kB / 363.5 MB, free: 8.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1201, allocations: 147 kB / 363.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1201, allocations: 33.64 kB / 363.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.1202, allocations: 120.4 kB / 363.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.1203, allocations: 39.55 kB / 363.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.1203, allocations: 8 kB / 363.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1204, allocations: 326.8 kB / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.1206, allocations: 68.19 kB / 364.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.1208, allocations: 147.8 kB / 364.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.121, allocations: 112 kB / 364.5 MB, free: 7.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.121, allocations: 4 kB / 364.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005198/0.1216, allocations: 291.1 kB / 364.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.1216, allocations: 33.7 kB / 364.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1216, allocations: 4 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1216, allocations: 11.89 kB / 364.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.1218, allocations: 43.91 kB / 364.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.1219, allocations: 7.984 kB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.122, allocations: 39.83 kB / 364.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.1221, allocations: 12 kB / 364.9 MB, free: 6.742 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.1222, allocations: 137.5 kB / 365 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.1224, allocations: 109.5 kB / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.132e-05/0.1224, allocations: 24.7 kB / 365.2 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1224, allocations: 4 kB / 365.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1224, allocations: 7.953 kB / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1225, allocations: 0 / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006975/0.1232, allocations: 0.506 MB / 365.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1232, allocations: 0 / 365.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.1234, allocations: 47.91 kB / 365.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1234, allocations: 0 / 365.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.1234, allocations: 15.94 kB / 365.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1234, allocations: 0 / 365.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1234, allocations: 0 / 365.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.124, allocations: 348.9 kB / 366.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.124, allocations: 96.95 kB / 366.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.1241, allocations: 8 kB / 366.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.1243, allocations: 23.98 kB / 366.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.1243, allocations: 15.91 kB / 366.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1244, allocations: 11.98 kB / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.35e-05/0.1244, allocations: 115.5 kB / 366.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1244, allocations: 0 / 366.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.1247, allocations: 43.84 kB / 366.4 MB, free: 5.133 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.1248, allocations: 103.2 kB / 366.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005461/0.1254, allocations: 263.1 kB / 366.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1254, allocations: 0 / 366.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.1256, allocations: 72.58 kB / 366.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.126, allocations: 63.95 kB / 366.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006837/0.1267, allocations: 363.3 kB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.1271, allocations: 0.7325 MB / 368 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.46e-05/0.1272, allocations: 17.42 kB / 368 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.1272, allocations: 15.44 kB / 368 MB, free: 3.441 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1272, allocations: 0 / 368 MB, free: 3.441 MB / 302.1 MB Notification: Performance of Templates: time 0.004557/0.1318, allocations: 1.62 MB / 369.6 MB, free: 1.836 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../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.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