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.001442/0.001442, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001701/0.001701, allocations: 205.6 kB / 23.73 MB, free: 4.41 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.543/1.543, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.001641/0.001641, allocations: 47.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2894, allocations: 53.36 MB / 431.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003225/0.2926, allocations: 1.953 MB / 433.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2938, allocations: 0.6739 MB / 434.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.743e-05/0.2939, allocations: 4 kB / 434.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.702e-05/0.2939, allocations: 19.73 kB / 434.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.3e-05/0.294, allocations: 19.75 kB / 434.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003618/0.2944, allocations: 127.8 kB / 434.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.2946, allocations: 208 kB / 434.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.2948, allocations: 70.52 kB / 434.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.2949, allocations: 91.69 kB / 434.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.2951, allocations: 79.59 kB / 434.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.2951, allocations: 20 kB / 434.8 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.056e-05/0.2951, allocations: 20 kB / 434.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.123e-05/0.2952, allocations: 47.84 kB / 434.9 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.788e-05/0.2953, allocations: 71.64 kB / 435 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.2955, allocations: 224.3 kB / 435.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2955, allocations: 4 kB / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2955, allocations: 0 / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2956, allocations: 0 / 435.2 MB, free: 3.09 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.0007983/0.2964, allocations: 469.3 kB / 435.6 MB, free: 2.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.2964, allocations: 11.97 kB / 435.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2965, allocations: 32.78 kB / 435.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.2968, allocations: 182.8 kB / 435.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.274e-05/0.2969, allocations: 68.3 kB / 435.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.2969, allocations: 19.94 kB / 435.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007068/0.2976, allocations: 360.6 kB / 436.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2976, allocations: 0 / 436.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.2977, allocations: 11.94 kB / 436.3 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.2977, allocations: 4 kB / 436.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004162/0.2981, allocations: 131.8 kB / 436.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005903/0.2987, allocations: 361.1 kB / 436.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005097/0.2992, allocations: 189.1 kB / 437 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.2994, allocations: 101.7 kB / 437.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.2995, allocations: 4 kB / 437.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.2997, allocations: 141 kB / 437.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.2998, allocations: 192 / 437.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007938/0.3005, allocations: 289.3 kB / 437.5 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.3006, allocations: 93.05 kB / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.3008, allocations: 152.1 kB / 437.7 MB, free: 316 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.3008, allocations: 33.7 kB / 437.8 MB, free: 276 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.3009, allocations: 112.5 kB / 437.9 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.109e-05/0.3009, allocations: 39.73 kB / 437.9 MB, free: 120 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/0.301, allocations: 45.69 kB / 438 MB, free: 68 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3012, allocations: 330.8 kB / 438.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.3014, allocations: 89.89 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.3017, allocations: 180.4 kB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004429/0.3021, allocations: 235.8 kB / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3021, allocations: 0 / 438.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005958/0.3027, allocations: 311.2 kB / 439.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.3027, allocations: 33.7 kB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.3028, allocations: 4 kB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3028, allocations: 4 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.303, allocations: 43.91 kB / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.303, allocations: 7.984 kB / 439.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.3032, allocations: 27.88 kB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.3032, allocations: 12 kB / 439.2 MB, free: 14.69 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.0001435/0.3033, allocations: 153.5 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.3035, allocations: 106.4 kB / 439.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.109e-05/0.3036, allocations: 20.72 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3036, allocations: 4 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3036, allocations: 3.938 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3036, allocations: 0 / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/0.3043, allocations: 414 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3043, allocations: 11.94 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.3045, allocations: 39.89 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3045, allocations: 4 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.3045, allocations: 7.984 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.3045, allocations: 4 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3045, allocations: 0 / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006075/0.3051, allocations: 335.8 kB / 440.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.3052, allocations: 15.84 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.3052, allocations: 12 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.3054, allocations: 19.98 kB / 440.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.3054, allocations: 19.91 kB / 440.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.3055, allocations: 7.984 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.3055, allocations: 107.3 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3055, allocations: 0 / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.3058, allocations: 39.94 kB / 440.5 MB, free: 13.32 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.0001294/0.306, allocations: 107.2 kB / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.3065, allocations: 264.8 kB / 440.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3065, allocations: 0 / 440.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.3067, allocations: 55.95 kB / 440.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.3072, allocations: 63.44 kB / 441 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006835/0.3078, allocations: 329.4 kB / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.308, allocations: 120.3 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.366e-05/0.308, allocations: 17.48 kB / 441.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.419e-05/0.3081, allocations: 23.42 kB / 441.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3081, allocations: 0 / 441.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Templates: time 0.005548/0.3136, allocations: 2.138 MB / 443.6 MB, free: 10.17 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.832318494096398]