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.00143/0.00143, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001396/0.001396, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.483/1.483, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001549/0.001549, allocations: 55.92 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1134, allocations: 53.32 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003292/0.1167, allocations: 1.998 MB / 428.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.118, allocations: 0.7089 MB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1181, allocations: 4 kB / 429.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.562e-05/0.1181, allocations: 19.73 kB / 429.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.1183, allocations: 31.72 kB / 429.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.1187, allocations: 115.8 kB / 429.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.119, allocations: 211.9 kB / 429.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1192, allocations: 72.27 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.1194, allocations: 87.7 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.1196, allocations: 95.58 kB / 430.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.1196, allocations: 20 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.936e-05/0.1197, allocations: 24 kB / 430.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.1197, allocations: 43.83 kB / 430.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.592e-05/0.1198, allocations: 87.53 kB / 430.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.1201, allocations: 223 kB / 430.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1201, allocations: 4 kB / 430.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1201, allocations: 0 / 430.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1201, allocations: 0 / 430.5 MB, free: 0.5664 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.2188/0.3389, allocations: 0.5291 MB / 431 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3389, allocations: 11.09 kB / 431.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000229/0.3392, allocations: 33.55 kB / 431.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.3396, allocations: 236.6 kB / 431.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.329e-05/0.3397, allocations: 43.77 kB / 431.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.3397, allocations: 14.81 kB / 431.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008747/0.3406, allocations: 333.7 kB / 431.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3406, allocations: 1.25 kB / 431.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.3406, allocations: 5.969 kB / 431.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3407, allocations: 3.281 kB / 431.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.3411, allocations: 139.6 kB / 431.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.3418, allocations: 458.7 kB / 432.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.3424, allocations: 192.5 kB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.3426, allocations: 98.48 kB / 432.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.3427, allocations: 9.156 kB / 432.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003036/0.343, allocations: 117.3 kB / 432.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.164e-06/0.343, allocations: 0.6094 kB / 432.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008409/0.3438, allocations: 289 kB / 433 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.3439, allocations: 93.28 kB / 433.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.344, allocations: 150.9 kB / 433.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.344, allocations: 32.17 kB / 433.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.3441, allocations: 113.5 kB / 433.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.3441, allocations: 41.8 kB / 433.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.3442, allocations: 49.08 kB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.043e-05/0.3442, allocations: 331.5 kB / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.3444, allocations: 65.86 kB / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.3447, allocations: 140.6 kB / 434 MB, free: 9.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.3451, allocations: 235.3 kB / 434.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3451, allocations: 0 / 434.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005581/0.3456, allocations: 277 kB / 434.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.3457, allocations: 32.3 kB / 434.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3457, allocations: 3.594 kB / 434.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.3457, allocations: 4.406 kB / 434.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.3459, allocations: 45.61 kB / 434.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.3459, allocations: 9.453 kB / 434.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.3461, allocations: 33.8 kB / 434.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.3461, allocations: 10.91 kB / 434.6 MB, free: 9.723 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.0001316/0.3462, allocations: 143.4 kB / 434.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.3464, allocations: 110.2 kB / 434.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.3465, allocations: 22.16 kB / 434.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.3465, allocations: 2.562 kB / 434.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.3465, allocations: 2.672 kB / 434.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3465, allocations: 4.781 kB / 434.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006541/0.3472, allocations: 499.8 kB / 435.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3472, allocations: 2.188 kB / 435.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.3474, allocations: 44.62 kB / 435.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3474, allocations: 9 kB / 435.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.3474, allocations: 6.5 kB / 435.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3474, allocations: 1.062 kB / 435.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3474, allocations: 5.156 kB / 435.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.3479, allocations: 323.9 kB / 435.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.101e-05/0.348, allocations: 95.73 kB / 435.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.348, allocations: 6.438 kB / 435.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.3482, allocations: 19.94 kB / 435.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.3483, allocations: 19.33 kB / 435.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.3483, allocations: 9.344 kB / 435.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.184e-05/0.3483, allocations: 114.1 kB / 436 MB, free: 8.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3483, allocations: 1.094 kB / 436 MB, free: 8.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000304/0.3487, allocations: 35.78 kB / 436.1 MB, free: 8.836 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.0001084/0.3488, allocations: 115 kB / 436.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005777/0.3493, allocations: 234.3 kB / 436.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3493, allocations: 1.812 kB / 436.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.3495, allocations: 63.5 kB / 436.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.35, allocations: 69.59 kB / 436.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006257/0.3506, allocations: 323.1 kB / 436.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.3508, allocations: 0.7321 MB / 437.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.772e-05/0.3508, allocations: 12.45 kB / 437.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.51e-05/0.3509, allocations: 20.14 kB / 437.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3509, allocations: 1.062 kB / 437.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of Templates: time 0.005923/0.3568, allocations: 1.983 MB / 439.6 MB, free: 7.504 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/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:angle_input.amplitude,angle_input.continuous,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,rotationalClock.abs1.generateEvent,rotationalClock.abs2.generateEvent,rotationalClock.angle,rotationalClock.angular_offset.y_start,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.useSolver,rotationalClock.y_clock.useSolver,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width [Calling sys.exit(0), Time elapsed: 4.960727281868458]