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.RealSignals.TickBasedSine.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.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 183.1 kB / 16.71 MB, free: 4.969 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.384/1.384, allocations: 225.7 MB / 243.2 MB, free: 8.473 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.0009429/0.000943, allocations: 105.3 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.0002801, allocations: 15.94 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2821, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001764/0.2839, allocations: 1.288 MB / 405.9 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006091/0.2846, allocations: 417.1 kB / 406.3 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.2846, allocations: 5.031 kB / 406.3 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.272e-05/0.2847, allocations: 3.938 kB / 406.3 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.2849, allocations: 8.891 kB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.2851, allocations: 43.84 kB / 406.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.2852, allocations: 60.31 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.2854, allocations: 13.88 kB / 406.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.2855, allocations: 31.89 kB / 406.4 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.895e-05/0.2856, allocations: 23.86 kB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.2856, allocations: 4.531 kB / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.373e-05/0.2857, allocations: 0 / 406.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.331e-05/0.2857, allocations: 21.41 kB / 406.5 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.556e-05/0.2858, allocations: 49.5 kB / 406.5 MB, free: 29.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.2859, allocations: 63.72 kB / 406.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.2859, allocations: 0 / 406.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.2859, allocations: 1.031 kB / 406.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2859, allocations: 0 / 406.6 MB, free: 29.29 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005024/0.2864, allocations: 362.4 kB / 406.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2865, allocations: 8.656 kB / 407 MB, free: 28.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.2865, allocations: 12.84 kB / 407 MB, free: 28.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.2867, allocations: 181.2 kB / 407.1 MB, free: 28.66 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.2869, allocations: 42.25 kB / 407.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.2869, allocations: 5.344 kB / 407.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.2872, allocations: 173 kB / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2873, allocations: 0 / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.2873, allocations: 0 / 407.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2873, allocations: 4 kB / 407.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.2874, allocations: 39.97 kB / 407.4 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.2876, allocations: 182.4 kB / 407.6 MB, free: 28.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.2878, allocations: 170.4 kB / 407.7 MB, free: 27.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.571e-05/0.2879, allocations: 49.7 kB / 407.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.288, allocations: 3.984 kB / 407.8 MB, free: 27.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.288, allocations: 38.44 kB / 407.8 MB, free: 27.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.288, allocations: 3.938 kB / 407.8 MB, free: 27.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002964/0.2883, allocations: 113.8 kB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.2884, allocations: 97.19 kB / 408 MB, free: 27.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.151e-05/0.2884, allocations: 125.8 kB / 408.2 MB, free: 27.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.2885, allocations: 29.7 kB / 408.2 MB, free: 27.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.2885, allocations: 88.14 kB / 408.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.2885, allocations: 11.89 kB / 408.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-06/0.2885, allocations: 0 / 408.3 MB, free: 27.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.2886, allocations: 314.8 kB / 408.6 MB, free: 27.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.619e-05/0.2886, allocations: 24.02 kB / 408.6 MB, free: 26.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.043e-05/0.2887, allocations: 54 kB / 408.7 MB, free: 26.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.568e-05/0.2888, allocations: 85.88 kB / 408.8 MB, free: 26.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2888, allocations: 4 kB / 408.8 MB, free: 26.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001378/0.289, allocations: 105.5 kB / 408.9 MB, free: 26.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.289, allocations: 8 kB / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.289, allocations: 0 / 408.9 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.289, allocations: 8 kB / 408.9 MB, free: 26.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.019e-05/0.2891, allocations: 19.92 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.036e-06/0.2891, allocations: 8.219 kB / 408.9 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.2892, allocations: 7.906 kB / 408.9 MB, free: 26.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.2892, allocations: 8 kB / 408.9 MB, free: 26.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 6.801e-05/0.2893, allocations: 121.7 kB / 409.1 MB, free: 26.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.681e-05/0.2894, allocations: 81.45 kB / 409.1 MB, free: 26.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.2894, allocations: 12.38 kB / 409.1 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2894, allocations: 0 / 409.1 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2894, allocations: 0 / 409.1 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2894, allocations: 0 / 409.1 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.726e-05/0.2895, allocations: 173.6 kB / 409.3 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2895, allocations: 4 kB / 409.3 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.2896, allocations: 15.92 kB / 409.3 MB, free: 26.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2896, allocations: 3.938 kB / 409.3 MB, free: 26.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2896, allocations: 4 kB / 409.3 MB, free: 26.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2896, allocations: 3.984 kB / 409.3 MB, free: 26.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2896, allocations: 0 / 409.3 MB, free: 26.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.2898, allocations: 129.8 kB / 409.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.2899, allocations: 89.22 kB / 409.6 MB, free: 25.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.2899, allocations: 4 kB / 409.6 MB, free: 25.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.259e-05/0.29, allocations: 11.92 kB / 409.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.29, allocations: 4 kB / 409.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.29, allocations: 4 kB / 409.6 MB, free: 25.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.2901, allocations: 99.77 kB / 409.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2901, allocations: 0 / 409.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000183/0.2903, allocations: 12 kB / 409.7 MB, free: 25.77 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: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.089e-05/0.2904, allocations: 103.2 kB / 409.8 MB, free: 25.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.2905, allocations: 59.91 kB / 409.8 MB, free: 25.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2906, allocations: 448 / 409.8 MB, free: 25.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.416e-05/0.2906, allocations: 19.92 kB / 409.9 MB, free: 25.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004754/0.2911, allocations: 0.7269 MB / 410.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003359/0.2914, allocations: 193.6 kB / 410.8 MB, free: 24.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.2916, allocations: 0.6926 MB / 411.5 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.13e-05/0.2916, allocations: 7.969 kB / 411.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.614e-05/0.2916, allocations: 11.44 kB / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2916, allocations: 0 / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of Templates: time 0.002651/0.2943, allocations: 0.6841 MB / 412.2 MB, free: 23.2 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches