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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001048/0.001048, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 156.4 kB / 24.98 MB, free: 8.75 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9824/0.9824, allocations: 177 MB / 205.2 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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=5095,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=5095,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.802e-05, allocations: 9.266 kB / 273 MB, free: 1.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002439/0.002457, allocations: 2.017 MB / 275 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009107/0.003367, allocations: 0.6892 MB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.315e-05/0.00346, allocations: 0 / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.004e-05/0.0035, allocations: 23.73 kB / 275.7 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.003602, allocations: 27.72 kB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.003946, allocations: 127.6 kB / 275.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.004185, allocations: 212 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.004339, allocations: 68.88 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.004568, allocations: 123.7 kB / 276.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.006e-05/0.004658, allocations: 71.77 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.004686, allocations: 20 kB / 276.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.385e-05/0.00473, allocations: 24 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.004764, allocations: 47.77 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.004817, allocations: 55.91 kB / 276.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.005015, allocations: 155.4 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.005017, allocations: 0 / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005018, allocations: 0 / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.005022, allocations: 4 kB / 276.6 MB, free: 14.09 MB / 266.7 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.0006137/0.005636, allocations: 0.5387 MB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.005679, allocations: 12.03 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.005837, allocations: 44.78 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.00607, allocations: 188.8 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.006137, allocations: 64.3 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.006158, allocations: 20.38 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004605/0.006618, allocations: 325 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.006627, allocations: 0 / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.006647, allocations: 11.98 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.006657, allocations: 7.984 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.006773, allocations: 59.89 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.007216, allocations: 403 kB / 278.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.007416, allocations: 150.2 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.189e-05/0.007498, allocations: 63.34 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.007518, allocations: 4 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.00764, allocations: 130.8 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.007642, allocations: 4 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003223/0.007964, allocations: 185.4 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.008017, allocations: 89.11 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.008122, allocations: 213.8 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.008139, allocations: 29.7 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.008202, allocations: 163.2 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.008225, allocations: 31.73 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.008274, allocations: 39.36 kB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.008386, allocations: 0.5001 MB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.752e-05/0.008443, allocations: 45.69 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.105e-05/0.008504, allocations: 73.05 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.368e-05/0.008598, allocations: 85.02 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.008601, allocations: 3.938 kB / 280.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001672/0.008768, allocations: 176.5 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.008795, allocations: 33.7 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.008799, allocations: 0 / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.008812, allocations: 4.062 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.008924, allocations: 35.86 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.008931, allocations: 3.984 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.987e-05/0.00899, allocations: 15.89 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.009, allocations: 7.984 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,$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 (15): * Single equations (assignments): 14 * 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 9.171e-05/0.009092, allocations: 176.5 kB / 280.5 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.009205, allocations: 101.5 kB / 280.6 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.705e-05/0.009242, allocations: 16.78 kB / 280.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.009244, allocations: 4 kB / 280.6 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.009248, allocations: 4 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.009254, allocations: 7.984 kB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.009561, allocations: 413.1 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.009563, allocations: 0 / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.404e-05/0.009647, allocations: 27.98 kB / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.00965, allocations: 4 kB / 281.1 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.009666, allocations: 11.98 kB / 281.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.009668, allocations: 4 kB / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.009669, allocations: 0 / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.009898, allocations: 325.7 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/0.009912, allocations: 15.89 kB / 281.4 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.009935, allocations: 11.98 kB / 281.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.664e-05/0.01001, allocations: 15.98 kB / 281.5 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.01006, allocations: 11.98 kB / 281.5 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.01007, allocations: 7.984 kB / 281.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.311e-05/0.01013, allocations: 149 kB / 281.6 MB, free: 8.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01013, allocations: 0 / 281.6 MB, free: 8.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001736/0.0103, allocations: 39.92 kB / 281.7 MB, free: 8.641 MB / 266.7 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 8.329e-05/0.01038, allocations: 107.2 kB / 281.8 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.0106, allocations: 181.2 kB / 281.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01061, allocations: 4 kB / 281.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.273e-05/0.01066, allocations: 35.67 kB / 282 MB, free: 8.285 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.01094, allocations: 63.03 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005717/0.01151, allocations: 318.6 kB / 282.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.657e-05/0.01157, allocations: 83.77 kB / 282.4 MB, free: 7.777 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.01162, allocations: 5.156 kB / 282.4 MB, free: 7.773 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.48e-05/0.01169, allocations: 32.42 kB / 282.5 MB, free: 7.742 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01169, allocations: 4 kB / 282.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of Templates: time 0.004085/0.01577, allocations: 1.915 MB / 284.4 MB, free: 5.848 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8101148079149425]