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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.391/1.391, allocations: 221.3 MB / 235.5 MB, free: 2.887 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008377/0.0008377, allocations: 98.86 kB / 286.5 MB, free: 152 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.461e-05, allocations: 4 kB / 343.8 MB, free: 4.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08604, allocations: 50.41 MB / 394.2 MB, free: 1.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3066/0.3927, allocations: 77.12 MB / 471.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.3929, allocations: 75.95 kB / 471.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004193/0.3971, allocations: 1.437 MB / 472.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3971, allocations: 4 kB / 472.9 MB, free: 8.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.3971, allocations: 0 / 472.9 MB, free: 8.922 MB / 346.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.0003496/0.3975, allocations: 351 kB / 473.2 MB, free: 8.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3975, allocations: 8.031 kB / 473.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.3976, allocations: 11.86 kB / 473.2 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.3978, allocations: 179 kB / 473.4 MB, free: 8.301 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= -1 + sine.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.3979, allocations: 57.61 kB / 473.5 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.3979, allocations: 7.938 kB / 473.5 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.3982, allocations: 153 kB / 473.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.3982, allocations: 0 / 473.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.3982, allocations: 0 / 473.6 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3983, allocations: 3.953 kB / 473.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.675e-05/0.3983, allocations: 39.86 kB / 473.7 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.3985, allocations: 178.4 kB / 473.9 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.3987, allocations: 158.4 kB / 474 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.379e-05/0.3988, allocations: 37.78 kB / 474 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.3988, allocations: 4 kB / 474 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.3989, allocations: 42.55 kB / 474.1 MB, free: 7.504 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.3989, allocations: 0 / 474.1 MB, free: 7.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001892/0.3991, allocations: 73.62 kB / 474.2 MB, free: 7.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.3991, allocations: 89.02 kB / 474.2 MB, free: 7.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.789e-05/0.3992, allocations: 117.8 kB / 474.4 MB, free: 7.199 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3993, allocations: 29.73 kB / 474.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.3993, allocations: 92.12 kB / 474.5 MB, free: 7.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.3993, allocations: 7.906 kB / 474.5 MB, free: 7.062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.3993, allocations: 0 / 474.5 MB, free: 7.062 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.3994, allocations: 322.8 kB / 474.8 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.54e-05/0.3995, allocations: 8 kB / 474.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.332e-05/0.3995, allocations: 54.02 kB / 474.9 MB, free: 6.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.668e-05/0.3996, allocations: 19.94 kB / 474.9 MB, free: 6.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3996, allocations: 0 / 474.9 MB, free: 6.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001231/0.3997, allocations: 93.55 kB / 475 MB, free: 6.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3997, allocations: 4 kB / 475 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3997, allocations: 0 / 475 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3998, allocations: 4 kB / 475 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.656e-05/0.3998, allocations: 19.92 kB / 475 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.3999, allocations: 4 kB / 475 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.128e-05/0.3999, allocations: 11.84 kB / 475 MB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.3999, allocations: 8.172 kB / 475 MB, free: 6.488 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.4, allocations: 113 kB / 475.1 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4001, allocations: 77.52 kB / 475.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.4002, allocations: 8.625 kB / 475.2 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.4002, allocations: 4 kB / 475.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.4002, allocations: 0 / 475.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.4002, allocations: 192 / 475.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001063/0.4003, allocations: 177.5 kB / 475.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4003, allocations: 11.92 kB / 475.4 MB, free: 6.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.616e-05/0.4004, allocations: 12 kB / 475.4 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4004, allocations: 128 / 475.4 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.4004, allocations: 7.984 kB / 475.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4004, allocations: 4 kB / 475.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4004, allocations: 0 / 475.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.4006, allocations: 128.3 kB / 475.6 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.4007, allocations: 97 kB / 475.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.4007, allocations: 0 / 475.7 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.4008, allocations: 8 kB / 475.7 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.828e-05/0.4008, allocations: 7.984 kB / 475.7 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.4008, allocations: 3.984 kB / 475.7 MB, free: 5.727 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.374e-05/0.4009, allocations: 94.91 kB / 475.8 MB, free: 5.637 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4009, allocations: 0 / 475.8 MB, free: 5.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001928/0.4011, allocations: 16 kB / 475.8 MB, free: 5.621 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001128/0.4012, allocations: 103.2 kB / 475.9 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.4013, allocations: 51.91 kB / 475.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4013, allocations: 3.938 kB / 475.9 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.662e-05/0.4014, allocations: 4 kB / 475.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.4019, allocations: 0.7108 MB / 476.7 MB, free: 4.719 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002507/0.4021, allocations: 109.6 kB / 476.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.4023, allocations: 0.6965 MB / 477.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.269e-05/0.4024, allocations: 8.172 kB / 477.5 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.4024, allocations: 11.44 kB / 477.5 MB, free: 3.844 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4024, allocations: 0 / 477.5 MB, free: 3.844 MB / 346.7 MB Notification: Performance of Templates: time 0.002475/0.4049, allocations: 0.6562 MB / 478.1 MB, free: 3.195 MB / 346.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