Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008006/0.0008007, allocations: 97.88 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.884e-05/1.902e-05, allocations: 7.984 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09629, allocations: 51.48 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3144/0.4107, allocations: 77.26 MB / 472.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.411, allocations: 78.8 kB / 472.5 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004511/0.4155, allocations: 1.51 MB / 474 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4156, allocations: 4 kB / 474 MB, free: 13.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.4156, allocations: 0 / 474 MB, free: 13.26 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.0003338/0.4159, allocations: 350.5 kB / 474.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.416, allocations: 12.64 kB / 474.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001944/0.4162, allocations: 20.75 kB / 474.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.4164, allocations: 186.9 kB / 474.6 MB, free: 12.65 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.000103/0.4165, allocations: 44.7 kB / 474.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.4165, allocations: 0 / 474.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.77e-05/0.4166, allocations: 26.59 kB / 474.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.4168, allocations: 143.7 kB / 474.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.4169, allocations: 0 / 474.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.4169, allocations: 4 kB / 474.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4169, allocations: 4 kB / 474.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.417, allocations: 164.1 kB / 475 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.4172, allocations: 147.6 kB / 475.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.534e-05/0.4173, allocations: 33.28 kB / 475.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.4173, allocations: 4 kB / 475.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.4173, allocations: 39.2 kB / 475.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.4173, allocations: 0 / 475.2 MB, free: 12.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001571/0.4175, allocations: 77.31 kB / 475.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.4175, allocations: 82.09 kB / 475.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.815e-05/0.4176, allocations: 108.6 kB / 475.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.4176, allocations: 26.5 kB / 475.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.23e-05/0.4176, allocations: 91.8 kB / 475.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.4177, allocations: 8.312 kB / 475.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.4177, allocations: 3.938 kB / 475.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.248e-05/0.4177, allocations: 320.5 kB / 475.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.882e-05/0.4177, allocations: 7.859 kB / 475.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.831e-05/0.4178, allocations: 50.17 kB / 475.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.13e-05/0.4178, allocations: 20.38 kB / 476 MB, free: 11.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4178, allocations: 0 / 476 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001005/0.4179, allocations: 85.44 kB / 476 MB, free: 11.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.4179, allocations: 8 kB / 476.1 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.418, allocations: 7.125 kB / 476.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.418, allocations: 4 kB / 476.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.049e-05/0.4181, allocations: 18.05 kB / 476.1 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4181, allocations: 10.86 kB / 476.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.906e-05/0.4181, allocations: 8.688 kB / 476.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.4181, allocations: 4.797 kB / 476.1 MB, free: 11.13 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 4.817e-05/0.4182, allocations: 101 kB / 476.2 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.4183, allocations: 71.84 kB / 476.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.61e-05/0.4183, allocations: 13.36 kB / 476.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.4183, allocations: 0 / 476.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4183, allocations: 4.797 kB / 476.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.4183, allocations: 3.953 kB / 476.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.587e-05/0.4184, allocations: 148.9 kB / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.4184, allocations: 0 / 476.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.028e-05/0.4185, allocations: 11.33 kB / 476.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4185, allocations: 0 / 476.5 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.4185, allocations: 9.219 kB / 476.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.4185, allocations: 0.6562 kB / 476.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.4186, allocations: 0 / 476.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.4187, allocations: 125.8 kB / 476.6 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.4187, allocations: 95.8 kB / 476.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.4188, allocations: 1.547 kB / 476.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.875e-05/0.4188, allocations: 13.14 kB / 476.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.4189, allocations: 4.75 kB / 476.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.4189, allocations: 4.812 kB / 476.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.129e-05/0.4189, allocations: 100.2 kB / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4189, allocations: 0 / 476.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.4191, allocations: 8 kB / 476.8 MB, free: 10.43 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 8.349e-05/0.4192, allocations: 96.05 kB / 476.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001/0.4193, allocations: 46.47 kB / 476.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4193, allocations: 0 / 476.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/0.4194, allocations: 6.672 kB / 477 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.4198, allocations: 0.7102 MB / 477.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002201/0.42, allocations: 98.52 kB / 477.8 MB, free: 9.473 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001015/0.4201, allocations: 0.7029 MB / 478.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.03e-05/0.4202, allocations: 1.641 kB / 478.5 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.4202, allocations: 12.09 kB / 478.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4202, allocations: 0 / 478.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of Templates: time 0.002242/0.4225, allocations: 0.623 MB / 479.1 MB, free: 8.398 MB / 346.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