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.001248/0.001248, allocations: 111.5 kB / 17.06 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.001181/0.001181, 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3203, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003806/0.3242, allocations: 1.972 MB / 402.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3254, allocations: 0.6349 MB / 403.3 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.3255, allocations: 8 kB / 403.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.114e-05/0.3256, allocations: 15.8 kB / 403.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.3258, allocations: 31.72 kB / 403.4 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.3263, allocations: 106.4 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.3266, allocations: 208 kB / 403.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.3269, allocations: 96.3 kB / 403.8 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.3271, allocations: 99.62 kB / 403.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.3272, allocations: 87.59 kB / 404 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.3273, allocations: 20 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.497e-05/0.3273, allocations: 20 kB / 404 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.3274, allocations: 43.84 kB / 404 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3275, allocations: 87.58 kB / 404.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.3277, allocations: 212.4 kB / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3278, allocations: 0 / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3278, allocations: 0 / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3278, allocations: 0 / 404.3 MB, free: 5.25 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.000861/0.3286, allocations: 0.5258 MB / 404.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3287, allocations: 12.03 kB / 404.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.3288, allocations: 16.75 kB / 404.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.3291, allocations: 241.8 kB / 405.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.865e-05/0.3291, allocations: 38.59 kB / 405.2 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.3292, allocations: 23.94 kB / 405.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.3299, allocations: 329.2 kB / 405.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3299, allocations: 0 / 405.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.3299, allocations: 11.98 kB / 405.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3299, allocations: 4 kB / 405.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.3303, allocations: 131.8 kB / 405.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006819/0.331, allocations: 465.2 kB / 406.1 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/0.3315, allocations: 205.1 kB / 406.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.3317, allocations: 101.7 kB / 406.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.3318, allocations: 7.984 kB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.3321, allocations: 115.3 kB / 406.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.3321, allocations: 0 / 406.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007464/0.3328, allocations: 285.4 kB / 406.8 MB, free: 2.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.3329, allocations: 85.11 kB / 406.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.333, allocations: 156.6 kB / 407 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.3331, allocations: 33.7 kB / 407.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.3331, allocations: 116.4 kB / 407.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.3332, allocations: 43.55 kB / 407.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/0.3333, allocations: 49.69 kB / 407.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.3334, allocations: 326.8 kB / 407.6 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.3335, allocations: 64.12 kB / 407.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.3338, allocations: 143.4 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3341, allocations: 235.8 kB / 408 MB, free: 1.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3341, allocations: 0 / 408 MB, free: 1.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000503/0.3347, allocations: 282.2 kB / 408.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.3347, allocations: 37.7 kB / 408.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3347, allocations: 4 kB / 408.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.3347, allocations: 4 kB / 408.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.3349, allocations: 39.91 kB / 408.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.3349, allocations: 7.938 kB / 408.4 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.3351, allocations: 36.16 kB / 408.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.3351, allocations: 8 kB / 408.4 MB, free: 0.7812 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.0001119/0.3353, allocations: 141.7 kB / 408.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.3354, allocations: 106.3 kB / 408.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.877e-05/0.3355, allocations: 24.7 kB / 408.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.3355, allocations: 4 kB / 408.7 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3355, allocations: 3.938 kB / 408.7 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3355, allocations: 0 / 408.7 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.3362, allocations: 494.3 kB / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3362, allocations: 0 / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.3364, allocations: 39.91 kB / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3364, allocations: 7.875 kB / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.3364, allocations: 8 kB / 409.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3364, allocations: 0 / 409.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3364, allocations: 0 / 409.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/0.3369, allocations: 327.9 kB / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.337, allocations: 92.86 kB / 409.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.337, allocations: 19.92 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.3372, allocations: 15.98 kB / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.3372, allocations: 23.92 kB / 409.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3373, allocations: 7.984 kB / 409.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.303e-05/0.3373, allocations: 114.5 kB / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3373, allocations: 0 / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000274/0.3376, allocations: 35.94 kB / 409.9 MB, free: 15.23 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.0001021/0.3377, allocations: 111.8 kB / 410 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004967/0.3382, allocations: 247.1 kB / 410.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3382, allocations: 0 / 410.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001705/0.3384, allocations: 63.89 kB / 410.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.3388, allocations: 71.88 kB / 410.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005853/0.3394, allocations: 318.1 kB / 410.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.3397, allocations: 0.7359 MB / 411.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.204e-05/0.3397, allocations: 21.41 kB / 411.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.799e-05/0.3398, allocations: 19.44 kB / 411.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.3398, allocations: 0 / 411.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of Templates: time 0.004499/0.3443, allocations: 1.95 MB / 413.4 MB, free: 11.64 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