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.001017/0.001017, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001498/0.002515, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001017/0.001017, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001331/0.002348, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 1.026/1.026, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08789/1.114, allocations: 53.87 MB / 243.8 MB, free: 14.89 MB / 250.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.333e-06/1.333e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.072e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002387/0.002408, allocations: 2.076 MB / 247.1 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.003364, allocations: 0.7086 MB / 247.8 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.325e-05/0.003457, allocations: 3.938 kB / 247.8 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.162e-05/0.003499, allocations: 19.73 kB / 247.8 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.352e-05/0.003572, allocations: 19.75 kB / 247.8 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.003898, allocations: 127.6 kB / 247.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.004102, allocations: 204 kB / 248.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.004234, allocations: 70.19 kB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.004458, allocations: 151.6 kB / 248.4 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.309e-05/0.004551, allocations: 67.77 kB / 248.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.004588, allocations: 20 kB / 248.4 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.612e-05/0.004644, allocations: 28 kB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.004675, allocations: 27.94 kB / 248.5 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.004719, allocations: 43.88 kB / 248.5 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.004907, allocations: 131.5 kB / 248.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.311e-05/0.00492, allocations: 0 / 248.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.004921, allocations: 0 / 248.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.004933, allocations: 0 / 248.7 MB, free: 9.961 MB / 250.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.000598/0.005531, allocations: 475.5 kB / 249.1 MB, free: 9.457 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.005573, allocations: 12.62 kB / 249.1 MB, free: 9.445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.005739, allocations: 114 kB / 249.3 MB, free: 9.316 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.005928, allocations: 166 kB / 249.4 MB, free: 9.129 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.452e-05/0.005982, allocations: 72.28 kB / 249.5 MB, free: 9.047 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.006, allocations: 20.31 kB / 249.5 MB, free: 9.027 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.006359, allocations: 301.6 kB / 249.8 MB, free: 8.707 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.00637, allocations: 0 / 249.8 MB, free: 8.707 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.006384, allocations: 7.984 kB / 249.8 MB, free: 8.699 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.00639, allocations: 4 kB / 249.8 MB, free: 8.695 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.15e-05/0.006461, allocations: 39.97 kB / 249.9 MB, free: 8.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003481/0.006809, allocations: 256.8 kB / 250.1 MB, free: 8.387 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.006954, allocations: 109 kB / 250.2 MB, free: 8.262 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.068e-05/0.007005, allocations: 53.67 kB / 250.3 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.007027, allocations: 8.312 kB / 250.3 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001096/0.007137, allocations: 120.9 kB / 250.4 MB, free: 8.059 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.744e-06/0.007138, allocations: 4 kB / 250.4 MB, free: 8.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001958/0.007334, allocations: 137.4 kB / 250.5 MB, free: 7.914 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.007386, allocations: 85.11 kB / 250.6 MB, free: 7.812 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.105e-05/0.007477, allocations: 156.1 kB / 250.8 MB, free: 7.648 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.007498, allocations: 29.7 kB / 250.8 MB, free: 7.613 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.957e-05/0.007548, allocations: 112.5 kB / 250.9 MB, free: 7.5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.007573, allocations: 39.67 kB / 250.9 MB, free: 7.461 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003252/0.007898, allocations: 33.69 kB / 251 MB, free: 7.422 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.676e-05/0.007975, allocations: 322.8 kB / 251.3 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.015e-05/0.008015, allocations: 49.62 kB / 251.3 MB, free: 7.043 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.102e-05/0.008056, allocations: 67.39 kB / 251.4 MB, free: 6.965 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.479e-05/0.008121, allocations: 71.27 kB / 251.5 MB, free: 6.887 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.008122, allocations: 0 / 251.5 MB, free: 6.887 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001136/0.008236, allocations: 148.9 kB / 251.6 MB, free: 6.723 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.008269, allocations: 37.69 kB / 251.7 MB, free: 6.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.008274, allocations: 0 / 251.7 MB, free: 6.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.286e-06/0.008282, allocations: 0 / 251.7 MB, free: 6.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.88e-05/0.008381, allocations: 28.05 kB / 251.7 MB, free: 6.652 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.008385, allocations: 4 kB / 251.7 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.681e-05/0.008441, allocations: 19.92 kB / 251.7 MB, free: 6.629 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.00845, allocations: 4 kB / 251.7 MB, free: 6.625 MB / 250.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 7.989e-05/0.00853, allocations: 133.7 kB / 251.8 MB, free: 6.484 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.008607, allocations: 81.53 kB / 251.9 MB, free: 6.398 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.00865, allocations: 16.78 kB / 251.9 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.008653, allocations: 4 kB / 251.9 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.008655, allocations: 0 / 251.9 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.008659, allocations: 4 kB / 251.9 MB, free: 6.371 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.008903, allocations: 270.5 kB / 252.2 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.008905, allocations: 4 kB / 252.2 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.348e-05/0.008998, allocations: 43.91 kB / 252.3 MB, free: 6.035 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.543e-05/0.009013, allocations: 19.89 kB / 252.3 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.009016, allocations: 0 / 252.3 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.009025, allocations: 0 / 252.3 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.009028, allocations: 7.938 kB / 252.3 MB, free: 6.008 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.009029, allocations: 0 / 252.3 MB, free: 6.008 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.009132, allocations: 177.4 kB / 252.5 MB, free: 5.816 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.009153, allocations: 12 kB / 252.5 MB, free: 5.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.25e-05/0.009225, allocations: 15.98 kB / 252.5 MB, free: 5.789 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.009267, allocations: 15.91 kB / 252.5 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.009279, allocations: 12 kB / 252.5 MB, free: 5.762 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.541e-05/0.009304, allocations: 33.42 kB / 252.5 MB, free: 5.727 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009305, allocations: 0 / 252.5 MB, free: 5.727 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001419/0.009446, allocations: 35.89 kB / 252.6 MB, free: 5.691 MB / 250.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 9.304e-05/0.009539, allocations: 84.42 kB / 252.7 MB, free: 5.602 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.009719, allocations: 163.2 kB / 252.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.009726, allocations: 0 / 252.8 MB, free: 5.422 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.075e-05/0.009767, allocations: 40.77 kB / 252.9 MB, free: 5.379 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002169/0.009984, allocations: 82.75 kB / 252.9 MB, free: 5.305 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008015/0.01079, allocations: 310 kB / 253.2 MB, free: 4.969 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.175e-05/0.01084, allocations: 87.77 kB / 253.3 MB, free: 4.863 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.557e-05/0.01088, allocations: 9.141 kB / 253.3 MB, free: 4.855 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.01099, allocations: 71.36 kB / 253.4 MB, free: 4.785 MB / 250.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01099, allocations: 0 / 253.4 MB, free: 4.785 MB / 250.7 MB Notification: Performance of Templates: time 0.003911/0.0149, allocations: 1.996 MB / 255.4 MB, free: 2.816 MB / 250.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 -ignoreHideResult -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.4956805910915136]