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.001125/0.001125, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001607/0.002732, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.000992/0.000992, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001525/0.002517, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9429/0.9429, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08061/1.024, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.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.402e-06/1.402e-06, allocations: 0 / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.7e-05, allocations: 2.312 kB / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00302/0.003037, allocations: 2.04 MB / 241.6 MB, free: 1.145 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009904/0.004028, allocations: 0.6385 MB / 242.2 MB, free: 0.5 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.004138, allocations: 7.938 kB / 242.2 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.63e-05/0.004184, allocations: 19.73 kB / 242.2 MB, free: 484 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.062e-05/0.004265, allocations: 27.73 kB / 242.3 MB, free: 456 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.004571, allocations: 111.6 kB / 242.4 MB, free: 344 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000254/0.004825, allocations: 204 kB / 242.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.004988, allocations: 65.2 kB / 242.6 MB, free: 76 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/0.005234, allocations: 147.6 kB / 242.8 MB, free: 15.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.005347, allocations: 67.83 kB / 242.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.005384, allocations: 20 kB / 242.9 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.899e-05/0.005413, allocations: 20 kB / 242.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.14e-05/0.005454, allocations: 31.88 kB / 242.9 MB, free: 15.79 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.204e-05/0.005517, allocations: 43.88 kB / 243 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.005713, allocations: 123.5 kB / 243.1 MB, free: 15.63 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.479e-05/0.005728, allocations: 0 / 243.1 MB, free: 15.63 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005729, allocations: 0 / 243.1 MB, free: 15.63 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.005746, allocations: 0 / 243.1 MB, free: 15.63 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.0006833/0.006429, allocations: 467.5 kB / 243.5 MB, free: 15.13 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.006464, allocations: 12.03 kB / 243.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.117e-05/0.006525, allocations: 28.91 kB / 243.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.006749, allocations: 154.1 kB / 243.7 MB, free: 14.92 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.006826, allocations: 72.28 kB / 243.8 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.006855, allocations: 20.36 kB / 243.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004768/0.007332, allocations: 293.7 kB / 244.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.007342, allocations: 4 kB / 244.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.00736, allocations: 7.984 kB / 244.1 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.007368, allocations: 4 kB / 244.1 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.456e-05/0.007462, allocations: 35.92 kB / 244.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.007905, allocations: 280.6 kB / 244.4 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.008106, allocations: 124.9 kB / 244.6 MB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.166e-05/0.008178, allocations: 49.69 kB / 244.6 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.008203, allocations: 4.188 kB / 244.6 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.008329, allocations: 113.1 kB / 244.7 MB, free: 13.83 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.008331, allocations: 0 / 244.7 MB, free: 13.83 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002498/0.00858, allocations: 137.5 kB / 244.8 MB, free: 13.69 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.00864, allocations: 89.09 kB / 244.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/0.008738, allocations: 145.6 kB / 245.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.00876, allocations: 29.7 kB / 245.1 MB, free: 13.4 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.008816, allocations: 120.4 kB / 245.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.008845, allocations: 31.73 kB / 245.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.00889, allocations: 33.69 kB / 245.3 MB, free: 13.21 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.692e-05/0.008967, allocations: 326.8 kB / 245.6 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.009007, allocations: 41.69 kB / 245.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.69e-05/0.009054, allocations: 67.34 kB / 245.7 MB, free: 12.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.68e-05/0.009121, allocations: 79.31 kB / 245.8 MB, free: 12.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.009124, allocations: 3.938 kB / 245.8 MB, free: 12.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001132/0.009237, allocations: 144.4 kB / 245.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.009269, allocations: 32.2 kB / 246 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.009274, allocations: 0 / 246 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.009282, allocations: 7.938 kB / 246 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.009384, allocations: 23.98 kB / 246 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.009387, allocations: 0 / 246 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.491e-05/0.009442, allocations: 28 kB / 246 MB, free: 12.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.009451, allocations: 4 kB / 246 MB, free: 12.41 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.166e-05/0.009523, allocations: 121.8 kB / 246.2 MB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.349e-05/0.009596, allocations: 78.48 kB / 246.2 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.692e-05/0.009633, allocations: 28.75 kB / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.009636, allocations: 0 / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.009638, allocations: 0 / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.009642, allocations: 4 kB / 246.3 MB, free: 12.16 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.009882, allocations: 282.6 kB / 246.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.009884, allocations: 0 / 246.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.159e-05/0.009975, allocations: 35.97 kB / 246.6 MB, free: 11.83 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.614e-05/0.009992, allocations: 23.84 kB / 246.6 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.009994, allocations: 0 / 246.6 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.01, allocations: 11.98 kB / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.01001, allocations: 0 / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.01001, allocations: 3.938 kB / 246.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.01011, allocations: 176.3 kB / 246.8 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.01014, allocations: 11.98 kB / 246.8 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.859e-05/0.01021, allocations: 12 kB / 246.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.01025, allocations: 15.97 kB / 246.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.01026, allocations: 11.98 kB / 246.8 MB, free: 11.55 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.545e-05/0.01029, allocations: 28.83 kB / 246.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01029, allocations: 0 / 246.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001405/0.01043, allocations: 28 kB / 246.9 MB, free: 11.49 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.18e-05/0.01051, allocations: 95.81 kB / 247 MB, free: 11.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.01068, allocations: 161.7 kB / 247.1 MB, free: 11.21 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.01068, allocations: 64 / 247.1 MB, free: 11.21 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.066e-05/0.01072, allocations: 36.84 kB / 247.2 MB, free: 11.17 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.01095, allocations: 63.59 kB / 247.2 MB, free: 11.11 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008165/0.01177, allocations: 313.9 kB / 247.5 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.79e-05/0.01182, allocations: 79.81 kB / 247.6 MB, free: 10.67 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.301e-05/0.01186, allocations: 13.16 kB / 247.6 MB, free: 10.66 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/0.01195, allocations: 75.36 kB / 247.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01195, allocations: 0 / 247.7 MB, free: 10.58 MB / 250.7 MB Notification: Performance of Templates: time 0.003874/0.01582, allocations: 2.001 MB / 249.7 MB, free: 8.605 MB / 250.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 -emit_protected -ignoreHideResult -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.4286451498046517]