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.001909/0.001909, allocations: 115 kB / 18.46 MB, free: 4.621 MB / 14.72 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.002593/0.002593, allocations: 207.3 kB / 21.41 MB, free: 1.668 MB / 14.72 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.629/1.629, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00268/0.00268, allocations: 43.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1401, allocations: 53.33 MB / 427.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003971/0.144, allocations: 2.008 MB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.1457, allocations: 0.705 MB / 430.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1458, allocations: 7.938 kB / 430.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.706e-05/0.1459, allocations: 15.8 kB / 430.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.146, allocations: 27.73 kB / 430.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.1465, allocations: 123.7 kB / 430.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000287/0.1468, allocations: 208 kB / 430.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.147, allocations: 64.34 kB / 430.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002614/0.1473, allocations: 99.62 kB / 430.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1474, allocations: 91.58 kB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.1475, allocations: 20 kB / 430.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.166e-05/0.1475, allocations: 24 kB / 430.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.615e-05/0.1476, allocations: 47.83 kB / 430.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1477, allocations: 87.47 kB / 431 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.148, allocations: 215.1 kB / 431.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.148, allocations: 0 / 431.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.148, allocations: 4 kB / 431.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.148, allocations: 4 kB / 431.2 MB, free: 0.543 MB / 350.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.2561/0.4041, allocations: 0.5388 MB / 431.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.4042, allocations: 8.562 kB / 431.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.4044, allocations: 30.23 kB / 431.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003853/0.4048, allocations: 232.2 kB / 432 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.236e-05/0.4049, allocations: 42.25 kB / 432 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/0.4049, allocations: 17.38 kB / 432.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008151/0.4058, allocations: 333.3 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.4058, allocations: 0.9062 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.4058, allocations: 5.531 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.4058, allocations: 3.625 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.4063, allocations: 135.7 kB / 432.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006961/0.407, allocations: 465.2 kB / 433 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005132/0.4075, allocations: 188.2 kB / 433.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.4077, allocations: 98 kB / 433.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.4078, allocations: 7.469 kB / 433.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.4081, allocations: 117.1 kB / 433.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.405e-06/0.4081, allocations: 1.031 kB / 433.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008716/0.409, allocations: 291 kB / 433.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.409, allocations: 93.11 kB / 433.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.4091, allocations: 146.8 kB / 433.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.4092, allocations: 33.83 kB / 433.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.131e-05/0.4092, allocations: 115.4 kB / 434 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.4093, allocations: 40.67 kB / 434.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-05/0.4093, allocations: 50.05 kB / 434.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.757e-05/0.4094, allocations: 334.5 kB / 434.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.4096, allocations: 66.39 kB / 434.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.4099, allocations: 144.2 kB / 434.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.4103, allocations: 232 kB / 434.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4103, allocations: 3.125 kB / 434.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005941/0.4109, allocations: 274.4 kB / 435.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.4109, allocations: 32.77 kB / 435.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.411, allocations: 2.594 kB / 435.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.411, allocations: 3.812 kB / 435.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.4112, allocations: 47.23 kB / 435.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.4112, allocations: 4.469 kB / 435.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.4114, allocations: 30.08 kB / 435.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.4114, allocations: 12.84 kB / 435.3 MB, free: 9.586 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.0001364/0.4116, allocations: 147.3 kB / 435.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/0.4118, allocations: 105.5 kB / 435.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.243e-05/0.4118, allocations: 23.59 kB / 435.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4119, allocations: 3.438 kB / 435.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.4119, allocations: 1.5 kB / 435.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.4119, allocations: 7.469 kB / 435.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007797/0.4126, allocations: 495.3 kB / 436.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4127, allocations: 2.594 kB / 436.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.4128, allocations: 38.69 kB / 436.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.4129, allocations: 4.938 kB / 436.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.4129, allocations: 10.03 kB / 436.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4129, allocations: 6.484 kB / 436.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4129, allocations: 5.906 kB / 436.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005856/0.4135, allocations: 326.8 kB / 436.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.4135, allocations: 95.88 kB / 436.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.4135, allocations: 2.266 kB / 436.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.4137, allocations: 24.78 kB / 436.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.4138, allocations: 18.69 kB / 436.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.4138, allocations: 11.17 kB / 436.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.054e-05/0.4139, allocations: 110.5 kB / 436.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4139, allocations: 1.094 kB / 436.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.4142, allocations: 31.12 kB / 436.7 MB, free: 8.703 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.0001556/0.4144, allocations: 121.4 kB / 436.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006571/0.415, allocations: 228.8 kB / 437.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.415, allocations: 0 / 437.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.4153, allocations: 65.98 kB / 437.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.4157, allocations: 69.34 kB / 437.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007737/0.4165, allocations: 358.6 kB / 437.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.4167, allocations: 0.7252 MB / 438.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.664e-05/0.4168, allocations: 28.59 kB / 438.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4168, allocations: 0 / 438.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of Templates: time 0.006603/0.4234, allocations: 2.211 MB / 440.5 MB, free: 7.293 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.758362613007193]