Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 175.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007876/0.0007875, allocations: 90.31 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002571/0.0002571, allocations: 4 kB / 354.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2644, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.001917/0.2663, allocations: 1.634 MB / 406.2 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009033/0.2673, allocations: 0.7412 MB / 406.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.147e-05/0.2674, allocations: 9.281 kB / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/0.2674, allocations: 7.922 kB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.2675, allocations: 15.84 kB / 407 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.2679, allocations: 96.98 kB / 407.1 MB, free: 28.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.268, allocations: 193 kB / 407.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.2682, allocations: 85.23 kB / 407.3 MB, free: 28.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.2684, allocations: 63.7 kB / 407.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.253e-05/0.2685, allocations: 66.7 kB / 407.5 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.2685, allocations: 8 kB / 407.5 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.899e-05/0.2685, allocations: 4 kB / 407.5 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.556e-05/0.2686, allocations: 31.84 kB / 407.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.616e-05/0.2686, allocations: 85.3 kB / 407.6 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.2688, allocations: 192.8 kB / 407.8 MB, free: 28.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2688, allocations: 0 / 407.8 MB, free: 28.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2688, allocations: 4 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.2688, allocations: 0 / 407.8 MB, free: 28.09 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.0006682/0.2695, allocations: 0.4926 MB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.2696, allocations: 12.03 kB / 408.3 MB, free: 27.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.292e-05/0.2696, allocations: 20.66 kB / 408.3 MB, free: 27.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.2698, allocations: 237.6 kB / 408.5 MB, free: 27.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-05/0.2699, allocations: 46.53 kB / 408.6 MB, free: 27.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.27, allocations: 23.92 kB / 408.6 MB, free: 27.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006198/0.2706, allocations: 331 kB / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.2706, allocations: 0 / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.2707, allocations: 4 kB / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2707, allocations: 8 kB / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003744/0.271, allocations: 151.8 kB / 409.1 MB, free: 26.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005197/0.2716, allocations: 461.3 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.272, allocations: 213.1 kB / 409.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.2722, allocations: 121.5 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2722, allocations: 4 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.2725, allocations: 123.2 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.2726, allocations: 4 kB / 410 MB, free: 25.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006807/0.2732, allocations: 301.5 kB / 410.3 MB, free: 25.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.2733, allocations: 89.05 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.358e-05/0.2734, allocations: 157.5 kB / 410.5 MB, free: 25.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.2734, allocations: 33.7 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.671e-05/0.2735, allocations: 112.4 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.2735, allocations: 47.55 kB / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.327e-06/0.2735, allocations: 0 / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.2736, allocations: 330.8 kB / 411.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.2738, allocations: 68.19 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.274, allocations: 153.8 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.2743, allocations: 247.7 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2743, allocations: 4 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004498/0.2748, allocations: 291.2 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.2748, allocations: 33.7 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2748, allocations: 4 kB / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2749, allocations: 7.984 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.275, allocations: 47.91 kB / 411.9 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2751, allocations: 7.938 kB / 411.9 MB, free: 23.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.2752, allocations: 31.83 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.2752, allocations: 12 kB / 411.9 MB, free: 23.59 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 9.478e-05/0.2753, allocations: 145.7 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.2755, allocations: 105.5 kB / 412.2 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.201e-05/0.2756, allocations: 20.7 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2756, allocations: 7.938 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2756, allocations: 3.938 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2756, allocations: 7.938 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000542/0.2761, allocations: 499.3 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2761, allocations: 0 / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.2763, allocations: 51.91 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2763, allocations: 7.875 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.2764, allocations: 7.984 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2764, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2764, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/0.2768, allocations: 336.9 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.994e-05/0.2769, allocations: 100.8 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.2769, allocations: 7.938 kB / 413.2 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.2771, allocations: 31.98 kB / 413.2 MB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.445e-05/0.2772, allocations: 15.97 kB / 413.3 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.2772, allocations: 8 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.2772, allocations: 111.2 kB / 413.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2772, allocations: 0 / 413.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000248/0.2775, allocations: 39.84 kB / 413.4 MB, free: 22 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.9e-05/0.2776, allocations: 107.2 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004991/0.2781, allocations: 263 kB / 413.8 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2781, allocations: 4.625 kB / 413.8 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.2783, allocations: 75.95 kB / 413.9 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2787, allocations: 74.61 kB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005349/0.2793, allocations: 380 kB / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.2794, allocations: 0.7285 MB / 415 MB, free: 20.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.1e-05/0.2795, allocations: 13.42 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/0.2795, allocations: 31.36 kB / 415.1 MB, free: 20.26 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2795, allocations: 0 / 415.1 MB, free: 20.26 MB / 298.7 MB Notification: Performance of Templates: time 0.003774/0.2833, allocations: 1.716 MB / 416.8 MB, free: 18.55 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/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