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.0009151/0.0009151, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001433/0.001433, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9531/0.9531, allocations: 177 MB / 204.8 MB, free: 5.566 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.293e-06/1.293e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.888e-05, allocations: 6.312 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002439/0.002458, allocations: 2.028 MB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.003462, allocations: 0.6893 MB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.003584, allocations: 7.938 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.949e-05/0.003634, allocations: 19.73 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.003753, allocations: 27.72 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.004226, allocations: 127.6 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.004432, allocations: 208 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.004575, allocations: 68.86 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.004787, allocations: 127.7 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.05e-05/0.004877, allocations: 71.78 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.004904, allocations: 20 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.684e-05/0.004951, allocations: 24 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.613e-05/0.004987, allocations: 47.81 kB / 276.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.005042, allocations: 59.83 kB / 276.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.00524, allocations: 155.3 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.005242, allocations: 0 / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.005243, allocations: 0 / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.005248, allocations: 0 / 276.6 MB, free: 13.77 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.0005983/0.005846, allocations: 0.5426 MB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.005882, allocations: 16.03 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.006025, allocations: 40.78 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.006235, allocations: 188.8 kB / 277.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.32e-05/0.006298, allocations: 64.3 kB / 277.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.006319, allocations: 20.38 kB / 277.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.006765, allocations: 323.7 kB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.006775, allocations: 0 / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.006793, allocations: 8 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.006801, allocations: 4 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.006911, allocations: 55.83 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.007361, allocations: 415 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.007559, allocations: 150.2 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.787e-05/0.007637, allocations: 63.34 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.007658, allocations: 8 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001281/0.007786, allocations: 110.7 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.583e-06/0.007788, allocations: 4 kB / 278.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003398/0.008128, allocations: 185.6 kB / 278.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.008185, allocations: 93.05 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.008321, allocations: 209.8 kB / 279 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.008344, allocations: 37.62 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.488e-05/0.008429, allocations: 163.2 kB / 279.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.008456, allocations: 31.73 kB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.00851, allocations: 43.36 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004296/0.008939, allocations: 0.4923 MB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.85e-05/0.008998, allocations: 45.69 kB / 279.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.074e-05/0.009059, allocations: 69.06 kB / 279.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.351e-05/0.009152, allocations: 96.78 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.009155, allocations: 3.938 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001621/0.009317, allocations: 173 kB / 280.2 MB, free: 9.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.009344, allocations: 37.7 kB / 280.2 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.009348, allocations: 0 / 280.2 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.009361, allocations: 3.984 kB / 280.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.691e-05/0.009458, allocations: 27.92 kB / 280.2 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.009463, allocations: 0 / 280.2 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.283e-05/0.009526, allocations: 23.91 kB / 280.2 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.009537, allocations: 8 kB / 280.3 MB, free: 9.727 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.464e-05/0.009632, allocations: 176.5 kB / 280.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.009737, allocations: 102.3 kB / 280.5 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.009774, allocations: 20.77 kB / 280.5 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.009777, allocations: 4 kB / 280.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.009781, allocations: 4 kB / 280.6 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.009786, allocations: 4 kB / 280.6 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/0.01011, allocations: 413.3 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01011, allocations: 4 kB / 281 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.408e-05/0.01019, allocations: 31.97 kB / 281 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.0102, allocations: 7.938 kB / 281 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.01021, allocations: 7.984 kB / 281 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.01021, allocations: 4 kB / 281 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01021, allocations: 0 / 281 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.01045, allocations: 324.6 kB / 281.3 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.455e-05/0.01046, allocations: 11.91 kB / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.01049, allocations: 8 kB / 281.4 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.279e-05/0.01056, allocations: 15.98 kB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.01062, allocations: 15.97 kB / 281.4 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.01063, allocations: 4 kB / 281.4 MB, free: 8.512 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.15e-05/0.0107, allocations: 153 kB / 281.5 MB, free: 8.363 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0107, allocations: 0 / 281.5 MB, free: 8.363 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001727/0.01087, allocations: 35.94 kB / 281.6 MB, free: 8.328 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.282e-05/0.01095, allocations: 107.2 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002207/0.01117, allocations: 177.2 kB / 281.9 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01117, allocations: 4 kB / 281.9 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.583e-05/0.01123, allocations: 39.61 kB / 281.9 MB, free: 7.973 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.01152, allocations: 63.58 kB / 282 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006133/0.01213, allocations: 306.5 kB / 282.3 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.52e-05/0.01219, allocations: 87.83 kB / 282.3 MB, free: 7.469 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.242e-05/0.01223, allocations: 9.141 kB / 282.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.01229, allocations: 28.48 kB / 282.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01229, allocations: 0 / 282.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of Templates: time 0.003878/0.01617, allocations: 2.008 MB / 284.4 MB, free: 5.453 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.691127374302596]