Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00168/0.002815, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001605/0.002757, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.055/1.055, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1023/1.157, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.466e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.005843/0.005858, allocations: 2.084 MB / 246.8 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.009811, allocations: 0.7047 MB / 247.5 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.073e-05/0.009902, allocations: 7.938 kB / 247.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.226e-05/0.009944, allocations: 15.8 kB / 247.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.057e-05/0.01001, allocations: 23.69 kB / 247.5 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.01031, allocations: 131.6 kB / 247.7 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.01054, allocations: 200 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.01069, allocations: 70.19 kB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.01094, allocations: 151.6 kB / 248.1 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.01105, allocations: 67.83 kB / 248.1 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/0.01108, allocations: 23.94 kB / 248.2 MB, free: 10.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.01115, allocations: 20 kB / 248.2 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.969e-05/0.01119, allocations: 27.94 kB / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.361e-05/0.01125, allocations: 51.88 kB / 248.2 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.01145, allocations: 123.5 kB / 248.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.01146, allocations: 0 / 248.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.01146, allocations: 0 / 248.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.01147, allocations: 0 / 248.4 MB, free: 10.55 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.0006251/0.0121, allocations: 471.5 kB / 248.8 MB, free: 10.05 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.01213, allocations: 15.98 kB / 248.8 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.01229, allocations: 118 kB / 249 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003219/0.01551, allocations: 170 kB / 249.1 MB, free: 9.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/0.01557, allocations: 68.28 kB / 249.2 MB, free: 9.629 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.0156, allocations: 20.31 kB / 249.2 MB, free: 9.609 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.01599, allocations: 305.6 kB / 249.5 MB, free: 9.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.016, allocations: 0 / 249.5 MB, free: 9.285 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.01601, allocations: 8 kB / 249.5 MB, free: 9.277 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.01602, allocations: 4 kB / 249.5 MB, free: 9.273 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.208e-05/0.0161, allocations: 39.91 kB / 249.6 MB, free: 9.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.01647, allocations: 256.8 kB / 249.8 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.01664, allocations: 117 kB / 249.9 MB, free: 8.832 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.457e-05/0.01671, allocations: 49.67 kB / 250 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.01673, allocations: 8.188 kB / 250 MB, free: 8.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/0.01685, allocations: 121 kB / 250.1 MB, free: 8.633 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.01685, allocations: 3.938 kB / 250.1 MB, free: 8.629 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.000227/0.01708, allocations: 129.6 kB / 250.2 MB, free: 8.496 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.01713, allocations: 89.05 kB / 250.3 MB, free: 8.391 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.16e-05/0.01722, allocations: 157.7 kB / 250.5 MB, free: 8.227 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.01724, allocations: 29.7 kB / 250.5 MB, free: 8.191 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.0173, allocations: 112.5 kB / 250.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.01733, allocations: 39.67 kB / 250.7 MB, free: 8.039 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/0.01738, allocations: 33.69 kB / 250.7 MB, free: 8 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.311e-05/0.01747, allocations: 326.8 kB / 251 MB, free: 7.672 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.415e-05/0.01751, allocations: 41.69 kB / 251 MB, free: 7.625 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.004e-05/0.01756, allocations: 63.39 kB / 251.1 MB, free: 7.551 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.864e-05/0.01764, allocations: 75.33 kB / 251.2 MB, free: 7.465 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01764, allocations: 0 / 251.2 MB, free: 7.465 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000138/0.01778, allocations: 153 kB / 251.3 MB, free: 7.297 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.01781, allocations: 37.69 kB / 251.4 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.01782, allocations: 0 / 251.4 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.01783, allocations: 3.984 kB / 251.4 MB, free: 7.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.01794, allocations: 23.98 kB / 251.4 MB, free: 7.227 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.01794, allocations: 4 kB / 251.4 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.07e-05/0.01801, allocations: 19.92 kB / 251.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.01803, allocations: 7.984 kB / 251.4 MB, free: 7.195 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 8.48e-05/0.01811, allocations: 129.8 kB / 251.6 MB, free: 7.059 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.619e-05/0.0182, allocations: 77.53 kB / 251.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003035/0.02123, allocations: 20.78 kB / 251.6 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.02124, allocations: 4 kB / 251.7 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.02124, allocations: 0 / 251.7 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.02124, allocations: 3.984 kB / 251.7 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.02151, allocations: 266.5 kB / 251.9 MB, free: 6.664 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.02151, allocations: 4 kB / 251.9 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.02163, allocations: 39.97 kB / 252 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.521e-05/0.02164, allocations: 19.89 kB / 252 MB, free: 6.602 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.02164, allocations: 4 kB / 252 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.02165, allocations: 0 / 252 MB, free: 6.598 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.02166, allocations: 7.938 kB / 252 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.02166, allocations: 0 / 252 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.02177, allocations: 181.3 kB / 252.2 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.0218, allocations: 12 kB / 252.2 MB, free: 6.383 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-05/0.0219, allocations: 15.98 kB / 252.2 MB, free: 6.367 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.02194, allocations: 11.97 kB / 252.2 MB, free: 6.355 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.02195, allocations: 8 kB / 252.2 MB, free: 6.348 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.089e-05/0.02198, allocations: 39.86 kB / 252.3 MB, free: 6.309 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02198, allocations: 0 / 252.3 MB, free: 6.309 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00021/0.02219, allocations: 35.89 kB / 252.3 MB, free: 6.273 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 8.456e-05/0.02228, allocations: 88.89 kB / 252.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001772/0.02245, allocations: 153.9 kB / 252.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.02246, allocations: 4 kB / 252.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.314e-05/0.02252, allocations: 52.75 kB / 252.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.0228, allocations: 134.1 kB / 252.7 MB, free: 5.809 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009188/0.02372, allocations: 305.8 kB / 253 MB, free: 5.477 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.46e-05/0.02378, allocations: 83.77 kB / 253.1 MB, free: 5.375 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.928e-05/0.02384, allocations: 17.12 kB / 253.1 MB, free: 5.359 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.02395, allocations: 79.36 kB / 253.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of SimCode: time 9.41e-07/0.02395, allocations: 0 / 253.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of Templates: time 0.01249/0.03644, allocations: 2.013 MB / 255.2 MB, free: 3.312 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.805607868358493]