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.001839/0.001839, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.002328/0.002328, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 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.555/1.555, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002736/0.002736, allocations: 59.89 kB / 379 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.387, allocations: 53.4 MB / 432.4 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003984/0.391, allocations: 2.023 MB / 434.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.3925, allocations: 0.7166 MB / 435.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3927, allocations: 7.938 kB / 435.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.973e-05/0.3927, allocations: 19.73 kB / 435.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.3929, allocations: 23.8 kB / 435.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.3934, allocations: 123.6 kB / 435.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.3937, allocations: 212 kB / 435.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.3939, allocations: 68.83 kB / 435.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.3942, allocations: 99.69 kB / 435.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.3943, allocations: 87.61 kB / 435.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.3944, allocations: 23.94 kB / 435.8 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.231e-05/0.3944, allocations: 24 kB / 435.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.77e-05/0.3945, allocations: 39.91 kB / 435.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.3946, allocations: 87.52 kB / 436 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.395, allocations: 228.3 kB / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.395, allocations: 0 / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.395, allocations: 0 / 436.2 MB, free: 3.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.395, allocations: 0 / 436.2 MB, free: 3.023 MB / 334.1 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.0009437/0.3959, allocations: 473.3 kB / 436.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.396, allocations: 8.031 kB / 436.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.3961, allocations: 32.78 kB / 436.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.3965, allocations: 186.3 kB / 436.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.546e-05/0.3966, allocations: 68.28 kB / 436.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.3967, allocations: 27.92 kB / 437 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007491/0.3974, allocations: 325.5 kB / 437.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.3974, allocations: 4 kB / 437.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.3974, allocations: 8 kB / 437.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.3974, allocations: 4 kB / 437.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004184/0.3979, allocations: 123.9 kB / 437.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007265/0.3986, allocations: 432.4 kB / 437.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005011/0.3991, allocations: 193.1 kB / 438 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.3993, allocations: 93.86 kB / 438.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.3994, allocations: 11.98 kB / 438.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003078/0.3997, allocations: 123.3 kB / 438.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.024e-06/0.3997, allocations: 0 / 438.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.000824/0.4005, allocations: 285.3 kB / 438.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.69e-05/0.4006, allocations: 89.11 kB / 438.6 MB, free: 400 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.4008, allocations: 153.5 kB / 438.8 MB, free: 236 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.4008, allocations: 33.7 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.4009, allocations: 112.5 kB / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.4009, allocations: 39.73 kB / 439 MB, free: 40 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.755e-05/0.401, allocations: 49.69 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4012, allocations: 330.8 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.4014, allocations: 68.19 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.4017, allocations: 146.6 kB / 439.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004416/0.4021, allocations: 234.9 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4021, allocations: 4 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005836/0.4027, allocations: 274.9 kB / 440 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.4027, allocations: 33.7 kB / 440.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.4027, allocations: 4 kB / 440.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.4028, allocations: 7.938 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.403, allocations: 43.97 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.403, allocations: 8.281 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.4032, allocations: 35.86 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.4032, allocations: 11.94 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$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 (26): * Single equations (assignments): 25 * 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.000161/0.4033, allocations: 141.5 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.4035, allocations: 106.5 kB / 440.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.149e-05/0.4036, allocations: 28.69 kB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4036, allocations: 3.938 kB / 440.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4036, allocations: 4 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.4036, allocations: 4 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008022/0.4044, allocations: 481.2 kB / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4044, allocations: 0 / 440.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.4046, allocations: 35.97 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4046, allocations: 0 / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.4046, allocations: 11.92 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.4046, allocations: 11.94 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4046, allocations: 0 / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005909/0.4052, allocations: 316.1 kB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.749e-05/0.4053, allocations: 15.89 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.4053, allocations: 11.94 kB / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.4055, allocations: 23.92 kB / 441.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.4055, allocations: 19.97 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.4056, allocations: 7.984 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.258e-05/0.4057, allocations: 112.1 kB / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4057, allocations: 4 kB / 441.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.406, allocations: 31.94 kB / 441.5 MB, free: 13.27 MB / 350.1 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.0001426/0.4061, allocations: 115.1 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005938/0.4067, allocations: 235.2 kB / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4067, allocations: 0 / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001963/0.4069, allocations: 59.89 kB / 441.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.4073, allocations: 56.64 kB / 442 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007412/0.4081, allocations: 359 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.4085, allocations: 0.7284 MB / 443.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.551e-05/0.4086, allocations: 23.42 kB / 443.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4086, allocations: 4 kB / 443.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of Templates: time 0.004739/0.4133, allocations: 2.201 MB / 445.3 MB, free: 9.438 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed,sample_angle.y,time [Calling sys.exit(0), Time elapsed: 7.533468669978902]