Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001626, allocations: 191.5 kB / 17.43 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.866/1.866, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000814/0.0008139, allocations: 103.1 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003329, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2665, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00138/0.2679, allocations: 1.292 MB / 413.4 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006239/0.2685, allocations: 0.6783 MB / 414 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.885e-05/0.2686, allocations: 0.9688 kB / 414 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.188e-05/0.2686, allocations: 3.938 kB / 414 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.2688, allocations: 16.75 kB / 414.1 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.269, allocations: 37.55 kB / 414.1 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.826e-05/0.269, allocations: 59.84 kB / 414.2 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.788e-05/0.2691, allocations: 19.95 kB / 414.2 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2693, allocations: 34.95 kB / 414.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.211e-05/0.2693, allocations: 31.83 kB / 414.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.2694, allocations: 7.938 kB / 414.2 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.526e-05/0.2694, allocations: 8 kB / 414.3 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.2694, allocations: 7.984 kB / 414.3 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.989e-05/0.2695, allocations: 57.5 kB / 414.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.221e-05/0.2696, allocations: 55.77 kB / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2696, allocations: 0 / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2696, allocations: 2.562 kB / 414.4 MB, free: 23.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.2696, allocations: 0 / 414.4 MB, free: 23.54 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.0003797/0.27, allocations: 368.8 kB / 414.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.27, allocations: 12.03 kB / 414.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002051/0.2702, allocations: 24.83 kB / 414.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.2704, allocations: 188.2 kB / 415 MB, free: 22.87 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.000103/0.2705, allocations: 42.19 kB / 415 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.2705, allocations: 4.375 kB / 415 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.2708, allocations: 173 kB / 415.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.2708, allocations: 0 / 415.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.2708, allocations: 0 / 415.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.2708, allocations: 0 / 415.2 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.271, allocations: 39.97 kB / 415.2 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/0.2711, allocations: 182.4 kB / 415.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.2713, allocations: 174.4 kB / 415.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.123e-05/0.2714, allocations: 41.7 kB / 415.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.2714, allocations: 0 / 415.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.214e-05/0.2715, allocations: 38.5 kB / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.2715, allocations: 0 / 415.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002719/0.2717, allocations: 117.6 kB / 415.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.2718, allocations: 96.94 kB / 415.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.089e-05/0.2719, allocations: 126 kB / 416 MB, free: 21.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.717e-06/0.2719, allocations: 29.7 kB / 416 MB, free: 21.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.256e-05/0.2719, allocations: 92.12 kB / 416.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.2719, allocations: 3.906 kB / 416.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-06/0.2719, allocations: 4 kB / 416.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.76e-05/0.272, allocations: 326.8 kB / 416.4 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.547e-05/0.272, allocations: 12 kB / 416.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.053e-05/0.2721, allocations: 62 kB / 416.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.758e-05/0.2722, allocations: 89.86 kB / 416.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2722, allocations: 0 / 416.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001433/0.2724, allocations: 105.5 kB / 416.7 MB, free: 20.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.2724, allocations: 8 kB / 416.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.2724, allocations: 0 / 416.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.2724, allocations: 4 kB / 416.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.223e-05/0.2725, allocations: 19.92 kB / 416.7 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2725, allocations: 7.922 kB / 416.7 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.8e-05/0.2725, allocations: 11.91 kB / 416.7 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.2726, allocations: 4 kB / 416.7 MB, free: 20.86 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 5.646e-05/0.2726, allocations: 129.9 kB / 416.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.2727, allocations: 81.45 kB / 416.9 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.2728, allocations: 8.375 kB / 416.9 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2728, allocations: 4 kB / 416.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.2728, allocations: 0 / 416.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2728, allocations: 3.984 kB / 417 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.318e-05/0.2729, allocations: 169.6 kB / 417.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.2729, allocations: 0 / 417.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.2729, allocations: 19.92 kB / 417.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.273, allocations: 4 kB / 417.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.273, allocations: 7.984 kB / 417.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.273, allocations: 4 kB / 417.2 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.273, allocations: 0 / 417.2 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.2732, allocations: 121.8 kB / 417.3 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.2732, allocations: 97.03 kB / 417.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.2732, allocations: 384 / 417.4 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.411e-05/0.2733, allocations: 11.98 kB / 417.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.2733, allocations: 0 / 417.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-06/0.2734, allocations: 8 kB / 417.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.218e-05/0.2734, allocations: 95.45 kB / 417.5 MB, free: 20 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2734, allocations: 0 / 417.5 MB, free: 20 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001808/0.2736, allocations: 15.94 kB / 417.5 MB, free: 19.99 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 7.842e-05/0.2737, allocations: 107.2 kB / 417.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.2738, allocations: 63.89 kB / 417.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2738, allocations: 0 / 417.7 MB, free: 19.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.57e-05/0.2739, allocations: 15.92 kB / 417.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.2744, allocations: 0.7223 MB / 418.4 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002821/0.2747, allocations: 197.4 kB / 418.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.54e-05/0.2748, allocations: 0.6966 MB / 419.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.841e-05/0.2748, allocations: 7.75 kB / 419.3 MB, free: 18.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.2748, allocations: 11.44 kB / 419.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2749, allocations: 0 / 419.3 MB, free: 18.09 MB / 298.7 MB Notification: Performance of Templates: time 0.002304/0.2772, allocations: 0.6745 MB / 420 MB, free: 17.42 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches