Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009157/0.0009157, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 143.4 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9094/0.9094, allocations: 173.4 MB / 201.5 MB, free: 8.773 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 268.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.125e-05/2.276e-05, allocations: 6.25 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002417/0.00244, allocations: 2.042 MB / 270.5 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000829/0.003269, allocations: 0.6385 MB / 271.2 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.737e-05/0.003366, allocations: 11.94 kB / 271.2 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.788e-05/0.003404, allocations: 15.8 kB / 271.2 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.611e-05/0.0035, allocations: 31.72 kB / 271.2 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.003798, allocations: 111.6 kB / 271.4 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.003976, allocations: 208 kB / 271.6 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.004107, allocations: 66.14 kB / 271.6 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.004263, allocations: 119.8 kB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.497e-05/0.004358, allocations: 79.77 kB / 271.8 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.004386, allocations: 20 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.926e-05/0.004405, allocations: 16 kB / 271.9 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.004436, allocations: 39.91 kB / 271.9 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.75e-05/0.004483, allocations: 55.83 kB / 271.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.00464, allocations: 151.4 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.004643, allocations: 0 / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.004644, allocations: 0 / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.004647, allocations: 0 / 272.1 MB, free: 2.387 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.0004462/0.005094, allocations: 427.9 kB / 272.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.005128, allocations: 20.91 kB / 272.5 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.005172, allocations: 28.92 kB / 272.6 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.005341, allocations: 162 kB / 272.7 MB, free: 1.699 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.005389, allocations: 64.3 kB / 272.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.005405, allocations: 16.38 kB / 272.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.005729, allocations: 312.5 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.005736, allocations: 0 / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.005748, allocations: 4 kB / 273.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.005753, allocations: 4 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.605e-05/0.005819, allocations: 35.97 kB / 273.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003208/0.00614, allocations: 268.7 kB / 273.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.006286, allocations: 121 kB / 273.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.152e-05/0.006338, allocations: 49.83 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.006357, allocations: 8.125 kB / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/0.006461, allocations: 113 kB / 273.7 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.183e-06/0.006462, allocations: 0 / 273.7 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001847/0.006647, allocations: 138.2 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.006692, allocations: 89.11 kB / 273.9 MB, free: 392 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.006978, allocations: 153.6 kB / 274.1 MB, free: 228 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.006995, allocations: 29.69 kB / 274.1 MB, free: 192 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.428e-05/0.007039, allocations: 112.5 kB / 274.2 MB, free: 76 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.007059, allocations: 31.73 kB / 274.2 MB, free: 44 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.007101, allocations: 37.67 kB / 274.3 MB, free: 0 / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.007179, allocations: 322.9 kB / 274.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.688e-05/0.007215, allocations: 45.47 kB / 274.6 MB, free: 15.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.007255, allocations: 63.39 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.645e-05/0.007322, allocations: 83.39 kB / 274.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.007324, allocations: 3.938 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001096/0.007434, allocations: 141 kB / 274.9 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.007463, allocations: 33.7 kB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.007467, allocations: 0 / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.007476, allocations: 0 / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.007564, allocations: 23.98 kB / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.007567, allocations: 0 / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.183e-05/0.007619, allocations: 23.92 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.007628, allocations: 7.938 kB / 275 MB, free: 15.2 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 7.382e-05/0.007702, allocations: 137.8 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.614e-05/0.007768, allocations: 65.67 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.312e-05/0.007801, allocations: 24.77 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.007804, allocations: 0 / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-06/0.007805, allocations: 0 / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.007809, allocations: 7.938 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.008034, allocations: 270.5 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.008036, allocations: 0 / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.928e-05/0.008125, allocations: 47.91 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.008127, allocations: 0 / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.008136, allocations: 0 / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.008138, allocations: 4 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.008139, allocations: 0 / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.008244, allocations: 180.2 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.647e-05/0.00826, allocations: 19.84 kB / 275.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.008279, allocations: 7.938 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.587e-05/0.008345, allocations: 15.98 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.008389, allocations: 15.97 kB / 275.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.008399, allocations: 12 kB / 275.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.563e-05/0.008425, allocations: 32.81 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008425, allocations: 0 / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001319/0.008556, allocations: 28 kB / 275.9 MB, free: 14.29 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 7.708e-05/0.008634, allocations: 88.36 kB / 275.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.008773, allocations: 153.9 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.008776, allocations: 0 / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.04e-05/0.008817, allocations: 36.78 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.00901, allocations: 64.58 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000478/0.009488, allocations: 298 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.165e-05/0.009529, allocations: 79.81 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.998e-05/0.009569, allocations: 13.16 kB / 276.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.11e-05/0.009651, allocations: 75.36 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.009651, allocations: 0 / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of Templates: time 0.003364/0.01301, allocations: 1.984 MB / 278.6 MB, free: 11.47 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.548446907196194]