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.00116/0.00116, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.399/1.399, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009321/0.0009322, allocations: 95.59 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 8 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2897, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09956/0.3893, allocations: 77.18 MB / 478.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.3897, allocations: 88.81 kB / 478.8 MB, free: 3.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004507/0.3942, allocations: 1.443 MB / 480.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3943, allocations: 0 / 480.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3943, allocations: 0 / 480.2 MB, free: 1.805 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.0005197/0.3948, allocations: 367.1 kB / 480.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.3949, allocations: 8.031 kB / 480.6 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.231e-05/0.3949, allocations: 15.84 kB / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.3952, allocations: 186.9 kB / 480.8 MB, free: 1.152 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.0001823/0.3953, allocations: 37.69 kB / 480.8 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.3954, allocations: 4 kB / 480.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.3958, allocations: 168.8 kB / 481 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3958, allocations: 4 kB / 481 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.3958, allocations: 0 / 481 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3958, allocations: 3.953 kB / 481 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.396, allocations: 39.92 kB / 481 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002151/0.3962, allocations: 182.5 kB / 481.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.3965, allocations: 174.4 kB / 481.4 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.3966, allocations: 0 / 481.4 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3966, allocations: 30.56 kB / 481.4 MB, free: 408 kB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.3966, allocations: 0 / 481.4 MB, free: 408 kB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.000407/0.397, allocations: 198.7 kB / 481.6 MB, free: 184 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.746e-05/0.3971, allocations: 85.11 kB / 481.7 MB, free: 80 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3973, allocations: 120.8 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3973, allocations: 25.7 kB / 481.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.3973, allocations: 84.14 kB / 481.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.3974, allocations: 15.84 kB / 481.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.3974, allocations: 128 / 481.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3975, allocations: 330.8 kB / 482.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.067e-05/0.3976, allocations: 15.98 kB / 482.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.418e-05/0.3977, allocations: 61.94 kB / 482.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.462e-05/0.3978, allocations: 24 kB / 482.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3978, allocations: 0 / 482.3 MB, free: 15.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001903/0.398, allocations: 113.4 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.398, allocations: 8 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.398, allocations: 0 / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.398, allocations: 4 kB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.455e-05/0.3981, allocations: 12 kB / 482.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.3981, allocations: 3.984 kB / 482.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.887e-05/0.3982, allocations: 4 kB / 482.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.3982, allocations: 4.219 kB / 482.5 MB, free: 15.22 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.3983, allocations: 145 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.3985, allocations: 77.53 kB / 482.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.601e-05/0.3985, allocations: 12.36 kB / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3985, allocations: 4 kB / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.3986, allocations: 0 / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3986, allocations: 0 / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.3987, allocations: 173.6 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3987, allocations: 0 / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.867e-05/0.3988, allocations: 15.98 kB / 482.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3988, allocations: 4 kB / 482.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.3988, allocations: 0 / 482.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.832e-06/0.3989, allocations: 7.938 kB / 482.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3989, allocations: 0 / 482.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.3991, allocations: 151.5 kB / 483.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.221e-05/0.3992, allocations: 93 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.3992, allocations: 3.938 kB / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.57e-05/0.3993, allocations: 4 kB / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.3994, allocations: 3.984 kB / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.3994, allocations: 8 kB / 483.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.422e-05/0.3994, allocations: 95.27 kB / 483.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3995, allocations: 0 / 483.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000191/0.3996, allocations: 12 kB / 483.3 MB, free: 14.31 MB / 362.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 (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.0001478/0.3998, allocations: 107.2 kB / 483.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002048/0.4, allocations: 59.91 kB / 483.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4, allocations: 0 / 483.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.186e-05/0.4001, allocations: 8.422 kB / 483.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006672/0.4008, allocations: 0.722 MB / 484.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.4012, allocations: 189.5 kB / 484.4 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.4015, allocations: 0.6965 MB / 485.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.713e-05/0.4015, allocations: 4.188 kB / 485.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.4016, allocations: 7.438 kB / 485.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4016, allocations: 4 kB / 485.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.003086/0.4046, allocations: 0.6566 MB / 485.7 MB, free: 11.78 MB / 362.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