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.001212/0.001212, allocations: 119.8 kB / 18.4 MB, free: 4.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 207.5 kB / 19.35 MB, free: 3.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001232, allocations: 69.28 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1273, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003081/0.1304, allocations: 1.989 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1315, allocations: 0.7089 MB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.428e-05/0.1316, allocations: 0 / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.245e-05/0.1317, allocations: 19.73 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.862e-05/0.1318, allocations: 19.75 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.1322, allocations: 127.1 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.1325, allocations: 208 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.1327, allocations: 108.3 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.1329, allocations: 87.69 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.133, allocations: 95.59 kB / 362.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.133, allocations: 16 kB / 362.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.1331, allocations: 27.94 kB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.1332, allocations: 43.89 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.344e-05/0.1332, allocations: 83.53 kB / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.1335, allocations: 227.2 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1335, allocations: 0 / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1335, allocations: 0 / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1335, allocations: 4 kB / 362.6 MB, free: 9.582 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.0007798/0.1343, allocations: 0.526 MB / 363.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1343, allocations: 8.031 kB / 363.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.1345, allocations: 32.64 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.1348, allocations: 243.5 kB / 363.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/0.1349, allocations: 50.58 kB / 363.5 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.1349, allocations: 15.94 kB / 363.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/0.1356, allocations: 331 kB / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1356, allocations: 0 / 363.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.1356, allocations: 8 kB / 363.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1356, allocations: 4 kB / 363.8 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.136, allocations: 127.8 kB / 364 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006205/0.1366, allocations: 465.2 kB / 364.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004938/0.1372, allocations: 197.2 kB / 364.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.1374, allocations: 109.6 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.1374, allocations: 4 kB / 364.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/0.1377, allocations: 119.3 kB / 364.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.1377, allocations: 3.938 kB / 364.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001064/0.1388, allocations: 293.4 kB / 365.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.773e-05/0.1389, allocations: 89.05 kB / 365.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.1391, allocations: 150.4 kB / 365.4 MB, free: 6.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.1392, allocations: 33.7 kB / 365.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.1393, allocations: 108.5 kB / 365.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.186e-05/0.1393, allocations: 39.55 kB / 365.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.722e-05/0.1394, allocations: 41.7 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1396, allocations: 338.8 kB / 365.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.1399, allocations: 64.19 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.1402, allocations: 145.5 kB / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005663/0.1408, allocations: 227.7 kB / 366.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1408, allocations: 0 / 366.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000804/0.1416, allocations: 282.8 kB / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.1417, allocations: 33.7 kB / 366.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1417, allocations: 4 kB / 366.7 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.1417, allocations: 4.344 kB / 366.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.142, allocations: 51.89 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.142, allocations: 4 kB / 366.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.1423, allocations: 31.81 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.1423, allocations: 15.94 kB / 366.8 MB, free: 5.09 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.0001946/0.1425, allocations: 133.8 kB / 366.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.1428, allocations: 105.5 kB / 367 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.593e-05/0.1429, allocations: 24.7 kB / 367 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.1429, allocations: 4 kB / 367 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.1429, allocations: 7.938 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.143, allocations: 0 / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.144, allocations: 499.1 kB / 367.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.1441, allocations: 4 kB / 367.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1444, allocations: 35.91 kB / 367.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1444, allocations: 8 kB / 367.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.1444, allocations: 8 kB / 367.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.1444, allocations: 11.92 kB / 367.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1444, allocations: 0 / 367.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.1452, allocations: 319 kB / 367.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.465e-05/0.1453, allocations: 100.8 kB / 368 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.258e-05/0.1454, allocations: 7.938 kB / 368 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.1456, allocations: 23.86 kB / 368 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.1457, allocations: 15.97 kB / 368 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.1457, allocations: 12 kB / 368 MB, free: 3.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.1459, allocations: 107.2 kB / 368.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1459, allocations: 4 kB / 368.2 MB, free: 3.582 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.1463, allocations: 35.94 kB / 368.2 MB, free: 3.547 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.0001785/0.1465, allocations: 111.2 kB / 368.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007858/0.1473, allocations: 247 kB / 368.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1473, allocations: 0 / 368.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002691/0.1476, allocations: 64.64 kB / 368.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.1482, allocations: 78.27 kB / 368.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009244/0.1492, allocations: 322.8 kB / 369 MB, free: 2.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.1497, allocations: 0.7283 MB / 369.7 MB, free: 1.941 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1498, allocations: 21.47 kB / 369.7 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.121e-05/0.1499, allocations: 23.42 kB / 369.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1499, allocations: 0 / 369.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of Templates: time 0.2016/0.3515, allocations: 1.925 MB / 371.7 MB, free: 19.91 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 gbode -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