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.001857/0.001857, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002359/0.002359, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.544/1.544, allocations: 230.6 MB / 258.3 MB, free: 7.949 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.001554/0.001554, allocations: 44.06 kB / 379 MB, free: 2.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2826, allocations: 53.36 MB / 432.4 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003959/0.2865, allocations: 2.035 MB / 434.4 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.2882, allocations: 0.7128 MB / 435.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.2884, allocations: 0 / 435.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.65e-05/0.2884, allocations: 23.73 kB / 435.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.2886, allocations: 23.73 kB / 435.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.2891, allocations: 123.7 kB / 435.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003301/0.2894, allocations: 208 kB / 435.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.2896, allocations: 76.75 kB / 435.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.2899, allocations: 91.69 kB / 435.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.2901, allocations: 91.55 kB / 435.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.2901, allocations: 24 kB / 435.8 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.281e-05/0.2902, allocations: 31.98 kB / 435.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.2902, allocations: 31.92 kB / 435.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.2904, allocations: 91.52 kB / 435.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000364/0.2907, allocations: 225.6 kB / 436.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2907, allocations: 0 / 436.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2907, allocations: 0 / 436.1 MB, free: 3.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.2907, allocations: 0 / 436.1 MB, free: 3.277 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.0009948/0.2917, allocations: 480.3 kB / 436.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2918, allocations: 8.031 kB / 436.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.292, allocations: 36.72 kB / 436.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.2924, allocations: 177 kB / 436.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.2925, allocations: 68.28 kB / 436.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.2925, allocations: 19.94 kB / 436.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.2932, allocations: 333.5 kB / 437.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2932, allocations: 0 / 437.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.2933, allocations: 4 kB / 437.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.2933, allocations: 4 kB / 437.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004372/0.2937, allocations: 139.8 kB / 437.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007408/0.2945, allocations: 428.4 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.295, allocations: 193.1 kB / 438 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2952, allocations: 89.67 kB / 438.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.2953, allocations: 7.984 kB / 438.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.2956, allocations: 123.3 kB / 438.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.2956, allocations: 0 / 438.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008944/0.2965, allocations: 277.5 kB / 438.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.863e-05/0.2966, allocations: 85.11 kB / 438.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.2967, allocations: 171.7 kB / 438.7 MB, free: 496 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.2967, allocations: 25.7 kB / 438.8 MB, free: 464 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.436e-05/0.2968, allocations: 120.5 kB / 438.9 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.2969, allocations: 35.73 kB / 438.9 MB, free: 304 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.187e-05/0.297, allocations: 53.69 kB / 439 MB, free: 244 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.2972, allocations: 334.7 kB / 439.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.2974, allocations: 60.19 kB / 439.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.2976, allocations: 143.6 kB / 439.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.2981, allocations: 243.7 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2981, allocations: 0 / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005913/0.2987, allocations: 275.1 kB / 440 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.602e-05/0.2987, allocations: 33.7 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2987, allocations: 0 / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.2988, allocations: 4 kB / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.299, allocations: 51.91 kB / 440.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.299, allocations: 7.984 kB / 440.1 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.2992, allocations: 23.94 kB / 440.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.2992, allocations: 20.09 kB / 440.1 MB, free: 14.96 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.0001823/0.2994, allocations: 149.7 kB / 440.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.2996, allocations: 97.58 kB / 440.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.523e-05/0.2997, allocations: 32.64 kB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2997, allocations: 4 kB / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2997, allocations: 0 / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2997, allocations: 0 / 440.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009823/0.3007, allocations: 481.2 kB / 440.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3007, allocations: 0 / 440.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.3008, allocations: 39.91 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3008, allocations: 0 / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.3009, allocations: 11.98 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3009, allocations: 3.938 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3009, allocations: 0 / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006264/0.3015, allocations: 324.1 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.853e-05/0.3015, allocations: 19.84 kB / 441.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.3016, allocations: 4 kB / 441.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.3017, allocations: 27.86 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.3018, allocations: 19.97 kB / 441.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.3018, allocations: 7.984 kB / 441.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.077e-05/0.3019, allocations: 111.3 kB / 441.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3019, allocations: 0 / 441.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.3022, allocations: 35.94 kB / 441.5 MB, free: 13.53 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.0001509/0.3024, allocations: 107.2 kB / 441.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.303, allocations: 235.1 kB / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.303, allocations: 4 kB / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.3032, allocations: 55.95 kB / 441.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.3037, allocations: 58.95 kB / 441.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007736/0.3045, allocations: 370.5 kB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.305, allocations: 0.7245 MB / 443 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.259e-05/0.3051, allocations: 23.42 kB / 443 MB, free: 11.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3051, allocations: 3.938 kB / 443 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Templates: time 0.00491/0.31, allocations: 2.206 MB / 445.2 MB, free: 9.691 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.45110720093362]