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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 105.9 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008417/0.0008417, allocations: 43.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2643, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.002959/0.2673, allocations: 2.018 MB / 401.5 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009009/0.2682, allocations: 0.6253 MB / 402.1 MB, free: 30.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2683, allocations: 0 / 402.1 MB, free: 30.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.893e-05/0.2684, allocations: 15.84 kB / 402.1 MB, free: 30.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.2685, allocations: 18.94 kB / 402.1 MB, free: 30.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.2689, allocations: 100.3 kB / 402.2 MB, free: 30.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.269, allocations: 188 kB / 402.4 MB, free: 30.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2692, allocations: 92.3 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.2694, allocations: 74.59 kB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.2695, allocations: 87.53 kB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.2695, allocations: 12 kB / 402.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.563e-05/0.2696, allocations: 12 kB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.259e-05/0.2696, allocations: 31.84 kB / 402.7 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.753e-05/0.2697, allocations: 79.52 kB / 402.8 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001928/0.2699, allocations: 196.9 kB / 403 MB, free: 29.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2699, allocations: 0 / 403 MB, free: 29.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2699, allocations: 4 kB / 403 MB, free: 29.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.27, allocations: 0 / 403 MB, free: 29.84 MB / 298.7 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.0007858/0.2707, allocations: 0.526 MB / 403.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.2708, allocations: 8.031 kB / 403.5 MB, free: 29.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.2709, allocations: 16.75 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.271, allocations: 236.5 kB / 403.8 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.2711, allocations: 38.59 kB / 403.8 MB, free: 28.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.2711, allocations: 23.94 kB / 403.8 MB, free: 28.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.2717, allocations: 334.9 kB / 404.2 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2717, allocations: 0 / 404.2 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.2718, allocations: 8 kB / 404.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.2718, allocations: 4 kB / 404.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003741/0.2722, allocations: 135.9 kB / 404.3 MB, free: 28.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.2727, allocations: 457.3 kB / 404.8 MB, free: 27.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004256/0.2732, allocations: 205.1 kB / 405 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.2734, allocations: 101.8 kB / 405.1 MB, free: 27.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.2734, allocations: 16.05 kB / 405.1 MB, free: 27.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003446/0.2738, allocations: 111.3 kB / 405.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.2738, allocations: 0 / 405.2 MB, free: 27.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007041/0.2745, allocations: 285.2 kB / 405.5 MB, free: 27.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.2746, allocations: 93.05 kB / 405.6 MB, free: 27.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.814e-05/0.2747, allocations: 160.3 kB / 405.7 MB, free: 26.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.2747, allocations: 29.7 kB / 405.7 MB, free: 26.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.2747, allocations: 112.5 kB / 405.9 MB, free: 26.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.2748, allocations: 43.45 kB / 405.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/0.2748, allocations: 49.7 kB / 405.9 MB, free: 26.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.301e-05/0.2749, allocations: 326.8 kB / 406.3 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.2751, allocations: 60.19 kB / 406.3 MB, free: 26.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.2753, allocations: 148.3 kB / 406.5 MB, free: 26.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003355/0.2756, allocations: 227.5 kB / 406.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2756, allocations: 4 kB / 406.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004591/0.2761, allocations: 270.9 kB / 407 MB, free: 25.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.2761, allocations: 41.62 kB / 407 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2761, allocations: 352 / 407 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2762, allocations: 8 kB / 407 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.2763, allocations: 43.97 kB / 407.1 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2764, allocations: 11.88 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.2765, allocations: 23.83 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.2766, allocations: 16 kB / 407.1 MB, free: 25.38 MB / 298.7 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.0001128/0.2767, allocations: 141.7 kB / 407.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.2768, allocations: 101.5 kB / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.748e-05/0.2769, allocations: 24.72 kB / 407.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2769, allocations: 4 kB / 407.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.2769, allocations: 3.938 kB / 407.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2769, allocations: 0 / 407.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006258/0.2776, allocations: 0.4904 MB / 407.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.2776, allocations: 0 / 407.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.2778, allocations: 47.91 kB / 407.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2778, allocations: 3.938 kB / 407.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.2778, allocations: 11.98 kB / 407.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2778, allocations: 0 / 407.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2778, allocations: 0 / 407.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007867/0.2786, allocations: 0.9686 MB / 408.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.2786, allocations: 92.86 kB / 409 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.2787, allocations: 8 kB / 409 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.2788, allocations: 19.97 kB / 409 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.2789, allocations: 11.98 kB / 409 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.2789, allocations: 11.98 kB / 409 MB, free: 23.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.977e-05/0.279, allocations: 111.3 kB / 409.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.279, allocations: 0 / 409.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003645/0.2794, allocations: 47.86 kB / 409.2 MB, free: 23.13 MB / 298.7 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 9.586e-05/0.2795, allocations: 107.2 kB / 409.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000471/0.2799, allocations: 251.6 kB / 409.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.28, allocations: 0 / 409.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.2801, allocations: 63.89 kB / 409.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2805, allocations: 62.25 kB / 409.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006551/0.2812, allocations: 0.5643 MB / 410.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.2814, allocations: 0.7285 MB / 411 MB, free: 21.28 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.808e-05/0.2815, allocations: 17.42 kB / 411 MB, free: 21.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.349e-05/0.2815, allocations: 19.44 kB / 411 MB, free: 21.24 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.2815, allocations: 0 / 411 MB, free: 21.24 MB / 298.7 MB Notification: Performance of Templates: time 0.004037/0.2856, allocations: 1.833 MB / 412.8 MB, free: 19.42 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches