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.0009673/0.0009673, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.00153/0.00153, allocations: 161.3 kB / 24.99 MB, free: 9.273 MB / 18.57 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.046/1.046, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.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.973e-06/1.973e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.74e-05/2.937e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002674/0.002703, allocations: 2.025 MB / 275.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.0038, allocations: 0.6814 MB / 275.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.00393, allocations: 7.938 kB / 275.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.91e-05/0.003989, allocations: 19.73 kB / 275.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.004125, allocations: 23.8 kB / 275.8 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.004639, allocations: 131.5 kB / 275.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.004902, allocations: 200.1 kB / 276.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.005109, allocations: 68.88 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003218/0.005431, allocations: 131.6 kB / 276.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.005551, allocations: 71.83 kB / 276.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.005589, allocations: 20 kB / 276.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.611e-05/0.005645, allocations: 27.94 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.807e-05/0.005683, allocations: 35.91 kB / 276.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.054e-05/0.005753, allocations: 63.83 kB / 276.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.006003, allocations: 155.3 kB / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.006009, allocations: 0 / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.00601, allocations: 0 / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.006016, allocations: 0 / 276.7 MB, free: 14.2 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.0007281/0.006744, allocations: 0.5465 MB / 277.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.006791, allocations: 12.03 kB / 277.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.00697, allocations: 44.78 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.007234, allocations: 184.8 kB / 277.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.007314, allocations: 64.3 kB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.007347, allocations: 16.38 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.007901, allocations: 330.9 kB / 277.9 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.007912, allocations: 0 / 277.9 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.007936, allocations: 11.98 kB / 277.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.007946, allocations: 4 kB / 277.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.008069, allocations: 51.95 kB / 277.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.008667, allocations: 415 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.008892, allocations: 150.5 kB / 278.5 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.009074, allocations: 67.28 kB / 278.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.0091, allocations: 4 kB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001421/0.009242, allocations: 110.7 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.073e-06/0.009245, allocations: 0 / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003631/0.009608, allocations: 201.3 kB / 278.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.009678, allocations: 93.05 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.009803, allocations: 216.3 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.009824, allocations: 29.7 kB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.927e-05/0.009913, allocations: 163.2 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.00994, allocations: 35.8 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.009993, allocations: 39.36 kB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.01012, allocations: 0.4962 MB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.546e-05/0.01019, allocations: 45.69 kB / 280 MB, free: 10.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.466e-05/0.01026, allocations: 81.05 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.717e-05/0.01036, allocations: 84.83 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.01036, allocations: 3.938 kB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002035/0.01056, allocations: 176.9 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.0106, allocations: 33.7 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01061, allocations: 0 / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.01062, allocations: 0 / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.01075, allocations: 31.92 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.01076, allocations: 3.984 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.116e-05/0.01082, allocations: 19.95 kB / 280.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.01084, allocations: 7.984 kB / 280.4 MB, free: 10.15 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 0.0001136/0.01095, allocations: 176.5 kB / 280.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.01108, allocations: 105.5 kB / 280.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.01113, allocations: 16.78 kB / 280.7 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.01114, allocations: 4 kB / 280.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.01115, allocations: 0 / 280.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.01115, allocations: 7.984 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004648/0.01162, allocations: 405.2 kB / 281.1 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.01162, allocations: 3.984 kB / 281.1 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-05/0.01172, allocations: 31.92 kB / 281.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.01173, allocations: 4 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.01174, allocations: 7.984 kB / 281.1 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.01175, allocations: 4 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.01175, allocations: 0 / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.01202, allocations: 320 kB / 281.5 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.01204, allocations: 11.91 kB / 281.5 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.01207, allocations: 15.98 kB / 281.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.926e-05/0.01215, allocations: 15.98 kB / 281.5 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.01223, allocations: 11.98 kB / 281.5 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.01224, allocations: 7.984 kB / 281.5 MB, free: 8.941 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.755e-05/0.01231, allocations: 150.2 kB / 281.7 MB, free: 8.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01231, allocations: 0 / 281.7 MB, free: 8.797 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001909/0.0125, allocations: 39.92 kB / 281.7 MB, free: 8.758 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 0.0001261/0.01262, allocations: 110 kB / 281.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.01286, allocations: 177.7 kB / 282 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01287, allocations: 3.938 kB / 282 MB, free: 8.445 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.589e-05/0.01292, allocations: 39.66 kB / 282 MB, free: 8.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.01328, allocations: 71.12 kB / 282.1 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.01399, allocations: 314.5 kB / 282.4 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.316e-05/0.01405, allocations: 87.83 kB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.635e-05/0.0141, allocations: 5.156 kB / 282.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.49e-05/0.01416, allocations: 24.48 kB / 282.5 MB, free: 7.859 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.01416, allocations: 3.938 kB / 282.5 MB, free: 7.855 MB / 266.7 MB Notification: Performance of Templates: time 0.004134/0.0183, allocations: 1.919 MB / 284.4 MB, free: 5.957 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9678076759446412]