Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001927/0.001928, allocations: 110.4 kB / 17.16 MB, free: 6.082 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.002272/0.002272, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.436/2.436, allocations: 222.9 MB / 241.8 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 38.53 kB / 300.6 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1816, allocations: 49.46 MB / 350.1 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.006923/0.1886, allocations: 1.646 MB / 351.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1902, allocations: 446.9 kB / 352.1 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.1904, allocations: 8 kB / 352.1 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.466e-05/0.1907, allocations: 7.922 kB / 352.2 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.191, allocations: 11.92 kB / 352.2 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004209/0.1914, allocations: 42.7 kB / 352.2 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.1916, allocations: 51.86 kB / 352.3 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.1919, allocations: 15.98 kB / 352.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.1921, allocations: 35.78 kB / 352.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.1923, allocations: 27.84 kB / 352.3 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.1923, allocations: 8 kB / 352.3 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.919e-05/0.1923, allocations: 4 kB / 352.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.954e-05/0.1924, allocations: 7.984 kB / 352.4 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.578e-05/0.1925, allocations: 31.8 kB / 352.4 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.1927, allocations: 43.92 kB / 352.4 MB, free: 2.434 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.1927, allocations: 0 / 352.4 MB, free: 2.434 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1928, allocations: 0 / 352.4 MB, free: 2.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1928, allocations: 0 / 352.4 MB, free: 2.434 MB / 286.1 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.0009651/0.1938, allocations: 371.5 kB / 352.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.538e-05/0.1938, allocations: 12.03 kB / 352.8 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.165e-05/0.1939, allocations: 12.84 kB / 352.8 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.1943, allocations: 192.1 kB / 353 MB, free: 1.773 MB / 286.1 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.0002185/0.1945, allocations: 38.25 kB / 353 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.27e-05/0.1946, allocations: 4.375 kB / 353 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006736/0.1952, allocations: 176.9 kB / 353.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1953, allocations: 0 / 353.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1953, allocations: 0 / 353.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1953, allocations: 4 kB / 353.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.1956, allocations: 35.91 kB / 353.3 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.1961, allocations: 174.5 kB / 353.4 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005923/0.1967, allocations: 174.4 kB / 353.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.1969, allocations: 41.7 kB / 353.6 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.197, allocations: 4 kB / 353.6 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.197, allocations: 34.5 kB / 353.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.1971, allocations: 0 / 353.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0006005/0.1977, allocations: 117.5 kB / 353.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.1978, allocations: 85.11 kB / 353.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.198, allocations: 121.8 kB / 354 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.349e-05/0.1981, allocations: 25.7 kB / 354 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/0.1982, allocations: 88.14 kB / 354.1 MB, free: 0.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.652e-05/0.1982, allocations: 11.89 kB / 354.1 MB, free: 500 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/0.1983, allocations: 21.84 kB / 354.1 MB, free: 472 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002291/0.1986, allocations: 322.8 kB / 354.5 MB, free: 140 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.394e-05/0.1987, allocations: 19.92 kB / 354.5 MB, free: 120 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1988, allocations: 54 kB / 354.5 MB, free: 44 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000223/0.1991, allocations: 77.94 kB / 354.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1991, allocations: 4 kB / 354.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003313/0.1994, allocations: 109.3 kB / 354.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.1995, allocations: 4 kB / 354.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.1995, allocations: 0 / 354.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.1995, allocations: 4 kB / 354.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1997, allocations: 16.17 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/0.1997, allocations: 4 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1998, allocations: 19.95 kB / 354.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.1999, allocations: 8 kB / 354.8 MB, free: 15.77 MB / 302.1 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 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,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 0.0001718/0.2001, allocations: 121.8 kB / 354.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.2003, allocations: 77.77 kB / 355 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.13e-05/0.2004, allocations: 8.375 kB / 355 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.2004, allocations: 4.062 kB / 355 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.2004, allocations: 4 kB / 355 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2005, allocations: 0 / 355 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.2007, allocations: 177.5 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2007, allocations: 0 / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.2009, allocations: 23.88 kB / 355.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.2009, allocations: 0 / 355.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.2009, allocations: 3.984 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2009, allocations: 0 / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.2009, allocations: 4 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003797/0.2013, allocations: 121.9 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.2015, allocations: 88.95 kB / 355.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.2015, allocations: 11.98 kB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.2016, allocations: 4 kB / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.2017, allocations: 0 / 355.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.2017, allocations: 8 kB / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.2019, allocations: 98.2 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2019, allocations: 4 kB / 355.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004172/0.2023, allocations: 8 kB / 355.5 MB, free: 14.91 MB / 302.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: 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 0.0002112/0.2025, allocations: 111.2 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.2029, allocations: 55.91 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.2029, allocations: 4 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.936e-05/0.203, allocations: 4 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.2044, allocations: 0.7175 MB / 356.4 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007135/0.2051, allocations: 230.7 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.2056, allocations: 0.6926 MB / 357.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.155e-05/0.2057, allocations: 15.44 kB / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2057, allocations: 0 / 357.3 MB, free: 13 MB / 302.1 MB Notification: Performance of Templates: time 0.004883/0.2106, allocations: 0.9422 MB / 358.3 MB, free: 12.05 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches