Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 114.3 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 51.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3119, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003114/0.3151, allocations: 1.981 MB / 402.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.3162, allocations: 0.6388 MB / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.887e-05/0.3163, allocations: 0 / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.356e-05/0.3164, allocations: 19.73 kB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.3165, allocations: 23.73 kB / 403.4 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.3169, allocations: 103.8 kB / 403.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.3171, allocations: 208 kB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.3173, allocations: 104.3 kB / 403.8 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.3175, allocations: 87.69 kB / 403.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.3176, allocations: 87.61 kB / 404 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.3177, allocations: 20 kB / 404 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.092e-05/0.3177, allocations: 20 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.3178, allocations: 43.83 kB / 404 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.892e-05/0.3179, allocations: 87.53 kB / 404.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.3181, allocations: 215 kB / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3182, allocations: 0 / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3182, allocations: 4 kB / 404.3 MB, free: 5.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.3182, allocations: 4 kB / 404.3 MB, free: 5.262 MB / 318.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.0009183/0.3191, allocations: 0.5296 MB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3192, allocations: 8.031 kB / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.3192, allocations: 20.84 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3196, allocations: 230.1 kB / 405.1 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.128e-05/0.3196, allocations: 58.52 kB / 405.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.3197, allocations: 15.94 kB / 405.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006899/0.3204, allocations: 329.3 kB / 405.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3204, allocations: 0 / 405.5 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.3204, allocations: 8 kB / 405.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.3204, allocations: 4 kB / 405.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004022/0.3208, allocations: 135.8 kB / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007278/0.3216, allocations: 453.4 kB / 406.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000498/0.3221, allocations: 209 kB / 406.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.3224, allocations: 105.7 kB / 406.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.3224, allocations: 8.062 kB / 406.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.3227, allocations: 115.5 kB / 406.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.3227, allocations: 0 / 406.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008346/0.3235, allocations: 285.4 kB / 406.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.3236, allocations: 89.05 kB / 406.9 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.3238, allocations: 156.8 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.3238, allocations: 33.7 kB / 407.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.3239, allocations: 112.5 kB / 407.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.3239, allocations: 43.67 kB / 407.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.813e-05/0.324, allocations: 45.69 kB / 407.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3242, allocations: 330.8 kB / 407.6 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.3244, allocations: 60.19 kB / 407.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.3246, allocations: 147.4 kB / 407.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.3251, allocations: 231.2 kB / 408 MB, free: 1.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3251, allocations: 0 / 408 MB, free: 1.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005532/0.3256, allocations: 278.9 kB / 408.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.3257, allocations: 33.7 kB / 408.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3257, allocations: 4 kB / 408.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3257, allocations: 4 kB / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.3259, allocations: 44.25 kB / 408.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.326, allocations: 7.938 kB / 408.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.3261, allocations: 35.83 kB / 408.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.3262, allocations: 15.98 kB / 408.4 MB, free: 0.7891 MB / 318.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.000197/0.3264, allocations: 141.8 kB / 408.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002516/0.3266, allocations: 114.3 kB / 408.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.918e-05/0.3267, allocations: 16.72 kB / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3267, allocations: 8 kB / 408.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.3267, allocations: 3.938 kB / 408.7 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3268, allocations: 3.984 kB / 408.7 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.3276, allocations: 490.3 kB / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3276, allocations: 0 / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.3278, allocations: 51.83 kB / 409.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3278, allocations: 7.938 kB / 409.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.3279, allocations: 4 kB / 409.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3279, allocations: 0 / 409.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3279, allocations: 4 kB / 409.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005609/0.3284, allocations: 320 kB / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.3285, allocations: 104.9 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.3285, allocations: 7.938 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.3287, allocations: 19.97 kB / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.3288, allocations: 15.98 kB / 409.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.3288, allocations: 7.984 kB / 409.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.488e-05/0.3289, allocations: 114.1 kB / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3289, allocations: 0 / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.3292, allocations: 32 kB / 409.9 MB, free: 15.24 MB / 334.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.0001518/0.3294, allocations: 119.7 kB / 410 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005516/0.3299, allocations: 242 kB / 410.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3299, allocations: 0 / 410.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.3301, allocations: 60.59 kB / 410.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.3306, allocations: 75.86 kB / 410.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007365/0.3313, allocations: 325.1 kB / 410.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.3317, allocations: 0.7321 MB / 411.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.527e-05/0.3318, allocations: 13.42 kB / 411.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.291e-05/0.3319, allocations: 19.44 kB / 411.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3319, allocations: 0 / 411.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of Templates: time 0.005606/0.3375, allocations: 1.949 MB / 413.4 MB, free: 11.66 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches