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.001553/0.001553, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009518/0.0009521, allocations: 84.98 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.754e-05/3.768e-05, allocations: 4 kB / 350.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3573/0.471, allocations: 77.93 MB / 480 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4713, allocations: 75.3 kB / 480 MB, free: 11.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004261/0.4755, allocations: 1.52 MB / 481.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4756, allocations: 0 / 481.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.4756, allocations: 0 / 481.6 MB, free: 10.14 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.0003374/0.4759, allocations: 357.8 kB / 481.9 MB, free: 9.754 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.476, allocations: 12.03 kB / 481.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002021/0.4762, allocations: 27.2 kB / 481.9 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.4764, allocations: 179.6 kB / 482.1 MB, free: 9.508 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.0001305/0.4765, allocations: 38.55 kB / 482.2 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.4766, allocations: 8.625 kB / 482.2 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.4769, allocations: 162.1 kB / 482.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4769, allocations: 3.172 kB / 482.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.4769, allocations: 0 / 482.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.4769, allocations: 0 / 482.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.256e-05/0.477, allocations: 26.48 kB / 482.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001979/0.4772, allocations: 181.3 kB / 482.5 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.4774, allocations: 166.1 kB / 482.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.066e-05/0.4775, allocations: 35.59 kB / 482.7 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.4775, allocations: 5.016 kB / 482.7 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.4776, allocations: 41.64 kB / 482.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.4776, allocations: 1.594 kB / 482.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.00019/0.4778, allocations: 76.84 kB / 482.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.4778, allocations: 88.83 kB / 482.9 MB, free: 8.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.4779, allocations: 111.9 kB / 483 MB, free: 8.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.4779, allocations: 28.95 kB / 483.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.689e-05/0.478, allocations: 91.19 kB / 483.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.478, allocations: 6.781 kB / 483.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/0.478, allocations: 0 / 483.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.4781, allocations: 328.5 kB / 483.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.097e-05/0.4781, allocations: 4 kB / 483.5 MB, free: 8.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.618e-05/0.4781, allocations: 56.58 kB / 483.5 MB, free: 8.008 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.486e-05/0.4782, allocations: 21.39 kB / 483.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.4782, allocations: 4 kB / 483.6 MB, free: 7.988 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001131/0.4783, allocations: 89.84 kB / 483.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4783, allocations: 8 kB / 483.7 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4783, allocations: 3.953 kB / 483.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.4784, allocations: 7.938 kB / 483.7 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.296e-05/0.4785, allocations: 16.2 kB / 483.7 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.4785, allocations: 8 kB / 483.7 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.4785, allocations: 7.938 kB / 483.7 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.4785, allocations: 6.875 kB / 483.7 MB, free: 7.852 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.371e-05/0.4786, allocations: 108.7 kB / 483.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.4787, allocations: 77.33 kB / 483.9 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.224e-05/0.4787, allocations: 10.97 kB / 483.9 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4788, allocations: 7.953 kB / 483.9 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.4788, allocations: 0 / 483.9 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4788, allocations: 4 kB / 483.9 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.548e-05/0.4789, allocations: 173.2 kB / 484.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.4789, allocations: 0 / 484.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.208e-05/0.479, allocations: 15.94 kB / 484.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.479, allocations: 0.75 kB / 484.1 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.479, allocations: 6.984 kB / 484.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.479, allocations: 5.594 kB / 484.1 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.479, allocations: 5.359 kB / 484.1 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.4792, allocations: 123.4 kB / 484.2 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.4792, allocations: 92.19 kB / 484.3 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.4792, allocations: 3.188 kB / 484.3 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.786e-05/0.4793, allocations: 7.953 kB / 484.3 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.4793, allocations: 0 / 484.3 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.4794, allocations: 7.984 kB / 484.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.86e-05/0.4794, allocations: 96.78 kB / 484.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4794, allocations: 4 kB / 484.5 MB, free: 7.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.4796, allocations: 14.88 kB / 484.5 MB, free: 7.062 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.4797, allocations: 102.1 kB / 484.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.4799, allocations: 45.23 kB / 484.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4799, allocations: 0 / 484.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.437e-05/0.4799, allocations: 4 kB / 484.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.4803, allocations: 0.7268 MB / 485.3 MB, free: 6.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.4806, allocations: 110 kB / 485.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.4807, allocations: 0.6926 MB / 486.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.116e-05/0.4807, allocations: 12.23 kB / 486.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.4808, allocations: 11.44 kB / 486.2 MB, free: 5.324 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4808, allocations: 0 / 486.2 MB, free: 5.324 MB / 346.7 MB Notification: Performance of Templates: time 0.002478/0.4832, allocations: 0.652 MB / 486.8 MB, free: 4.723 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