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.001679/0.001679, allocations: 116 kB / 17.07 MB, free: 5.973 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.001968/0.001968, allocations: 200 kB / 18.01 MB, free: 5.055 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 47.92 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.324, allocations: 49.42 MB / 400.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00363/0.3277, allocations: 1.98 MB / 402.7 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.3289, allocations: 0.6388 MB / 403.3 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.3291, allocations: 0 / 403.3 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.161e-05/0.3292, allocations: 23.73 kB / 403.3 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.3293, allocations: 23.75 kB / 403.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.3298, allocations: 115.8 kB / 403.5 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.3301, allocations: 204 kB / 403.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.3303, allocations: 92.3 kB / 403.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.3305, allocations: 87.69 kB / 403.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.3306, allocations: 87.59 kB / 403.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.3307, allocations: 20 kB / 404 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.27e-05/0.3307, allocations: 23.94 kB / 404 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.947e-05/0.3308, allocations: 51.84 kB / 404 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.901e-05/0.3309, allocations: 83.58 kB / 404.1 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.3312, allocations: 212.6 kB / 404.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3312, allocations: 11.92 kB / 404.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3312, allocations: 0 / 404.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.3312, allocations: 0 / 404.3 MB, free: 5.406 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.0009042/0.3321, allocations: 0.518 MB / 404.9 MB, free: 4.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3322, allocations: 8.031 kB / 404.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.48e-05/0.3322, allocations: 24.75 kB / 404.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.3326, allocations: 246 kB / 405.1 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.905e-05/0.3326, allocations: 38.59 kB / 405.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.3327, allocations: 19.94 kB / 405.2 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.3334, allocations: 329.6 kB / 405.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3334, allocations: 7.938 kB / 405.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.3334, allocations: 4 kB / 405.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3334, allocations: 4 kB / 405.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.3338, allocations: 123.9 kB / 405.6 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006813/0.3345, allocations: 465.3 kB / 406.1 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.335, allocations: 197.2 kB / 406.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.3353, allocations: 113.5 kB / 406.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.3353, allocations: 0 / 406.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.3356, allocations: 123.4 kB / 406.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3356, allocations: 4 kB / 406.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007905/0.3364, allocations: 281.2 kB / 406.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.356e-05/0.3365, allocations: 89.09 kB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3366, allocations: 148.6 kB / 407 MB, free: 2.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.3367, allocations: 33.7 kB / 407.1 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.3368, allocations: 120.4 kB / 407.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.3368, allocations: 39.61 kB / 407.2 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.238e-05/0.3369, allocations: 49.64 kB / 407.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.337, allocations: 326.8 kB / 407.6 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.3372, allocations: 64.19 kB / 407.7 MB, free: 1.824 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.3375, allocations: 143.4 kB / 407.8 MB, free: 1.648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.3379, allocations: 235.8 kB / 408 MB, free: 1.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3379, allocations: 0 / 408 MB, free: 1.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005355/0.3384, allocations: 271.1 kB / 408.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.582e-05/0.3385, allocations: 41.7 kB / 408.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3385, allocations: 4 kB / 408.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3385, allocations: 4 kB / 408.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.3387, allocations: 43.91 kB / 408.4 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3387, allocations: 11.92 kB / 408.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.3389, allocations: 27.83 kB / 408.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.339, allocations: 8 kB / 408.4 MB, free: 0.9531 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.000147/0.3391, allocations: 145.8 kB / 408.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.3393, allocations: 113.4 kB / 408.7 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.501e-05/0.3394, allocations: 20.7 kB / 408.7 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3394, allocations: 4 kB / 408.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3394, allocations: 3.938 kB / 408.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3394, allocations: 4 kB / 408.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007224/0.3401, allocations: 491.2 kB / 409.2 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3401, allocations: 0 / 409.2 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.3403, allocations: 35.97 kB / 409.2 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.3403, allocations: 7.938 kB / 409.2 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.3404, allocations: 7.984 kB / 409.2 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3404, allocations: 7.938 kB / 409.2 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3404, allocations: 0 / 409.2 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.3409, allocations: 327.5 kB / 409.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.341, allocations: 100.8 kB / 409.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.341, allocations: 7.938 kB / 409.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.3412, allocations: 19.98 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.3413, allocations: 15.97 kB / 409.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3413, allocations: 11.94 kB / 409.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.787e-05/0.3414, allocations: 118.1 kB / 409.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3414, allocations: 0 / 409.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.3417, allocations: 35.94 kB / 409.9 MB, free: 15.4 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.0001297/0.3419, allocations: 111.7 kB / 410 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005487/0.3424, allocations: 235.8 kB / 410.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3424, allocations: 4.062 kB / 410.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.3426, allocations: 71.88 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004884/0.3431, allocations: 71.94 kB / 410.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006781/0.3438, allocations: 313.4 kB / 410.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.3441, allocations: 0.7398 MB / 411.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.221e-05/0.3442, allocations: 17.42 kB / 411.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.947e-05/0.3443, allocations: 19.44 kB / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3443, allocations: 0 / 411.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of Templates: time 0.005453/0.3497, allocations: 1.952 MB / 413.4 MB, free: 11.81 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