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.001104/0.001104, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000805/0.0008051, allocations: 90.53 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.000214, allocations: 8 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1987, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08697/0.2857, allocations: 78.01 MB / 487.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.286, allocations: 79.95 kB / 487.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00502/0.291, allocations: 1.516 MB / 489 MB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2911, allocations: 0 / 489 MB, free: 11.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.2911, allocations: 4 kB / 489 MB, free: 11.02 MB / 362.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.0003973/0.2915, allocations: 367.1 kB / 489.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2916, allocations: 12.03 kB / 489.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.2918, allocations: 19.89 kB / 489.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.2919, allocations: 190.9 kB / 489.6 MB, free: 10.35 MB / 362.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.0001388/0.2921, allocations: 44.19 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.2921, allocations: 3.953 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.2925, allocations: 176.8 kB / 489.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2925, allocations: 0 / 489.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2925, allocations: 0 / 489.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.2926, allocations: 0 / 489.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.2927, allocations: 39.98 kB / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.2929, allocations: 186.4 kB / 490 MB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.2932, allocations: 174.4 kB / 490.2 MB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.2932, allocations: 4 kB / 490.2 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2932, allocations: 38.5 kB / 490.2 MB, free: 9.578 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 4.508e-06/0.2932, allocations: 0 / 490.2 MB, free: 9.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.000364/0.2936, allocations: 194.7 kB / 490.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.2937, allocations: 93.17 kB / 490.5 MB, free: 9.254 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.138e-05/0.2938, allocations: 113 kB / 490.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.2938, allocations: 25.7 kB / 490.7 MB, free: 9.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.2938, allocations: 88.12 kB / 490.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.2938, allocations: 11.91 kB / 490.8 MB, free: 9.004 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.2939, allocations: 0 / 490.8 MB, free: 9.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.294, allocations: 322.8 kB / 491.1 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.379e-05/0.294, allocations: 19.98 kB / 491.1 MB, free: 8.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.506e-05/0.2941, allocations: 58 kB / 491.2 MB, free: 8.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.912e-05/0.2942, allocations: 23.94 kB / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2942, allocations: 0 / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001791/0.2944, allocations: 101.5 kB / 491.3 MB, free: 8.453 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.2944, allocations: 12.2 kB / 491.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2944, allocations: 4 kB / 491.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2944, allocations: 7.953 kB / 491.3 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.851e-05/0.2945, allocations: 16 kB / 491.3 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2945, allocations: 3.938 kB / 491.3 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.403e-05/0.2946, allocations: 7.984 kB / 491.3 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.2946, allocations: 4 kB / 491.3 MB, free: 8.398 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 8.649e-05/0.2947, allocations: 118 kB / 491.4 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.2948, allocations: 77.53 kB / 491.5 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.11e-05/0.2949, allocations: 12.36 kB / 491.5 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.2949, allocations: 11.89 kB / 491.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.2949, allocations: 0 / 491.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2949, allocations: 3.938 kB / 491.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.295, allocations: 173.6 kB / 491.7 MB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.295, allocations: 0 / 491.7 MB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/0.2951, allocations: 15.98 kB / 491.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2951, allocations: 0 / 491.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.2951, allocations: 0 / 491.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2952, allocations: 4 kB / 491.7 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2952, allocations: 7.953 kB / 491.7 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.2954, allocations: 139.9 kB / 491.9 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.2955, allocations: 92.94 kB / 492 MB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.2955, allocations: 8 kB / 492 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.471e-05/0.2956, allocations: 19.94 kB / 492 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.812e-05/0.2956, allocations: 3.984 kB / 492 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.2956, allocations: 4 kB / 492 MB, free: 7.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.398e-05/0.2957, allocations: 99.27 kB / 492.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2957, allocations: 0 / 492.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001959/0.2959, allocations: 8 kB / 492.1 MB, free: 7.5 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.0001151/0.296, allocations: 103.2 kB / 492.2 MB, free: 7.391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001782/0.2962, allocations: 59.91 kB / 492.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2962, allocations: 0 / 492.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.99e-05/0.2963, allocations: 15.98 kB / 492.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.2968, allocations: 0.7244 MB / 493 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003428/0.2972, allocations: 185.4 kB / 493.2 MB, free: 6.359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2974, allocations: 0.7005 MB / 493.9 MB, free: 5.633 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.2e-05/0.2975, allocations: 4.188 kB / 493.9 MB, free: 5.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.2975, allocations: 11.44 kB / 493.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2975, allocations: 0 / 493.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of Templates: time 0.002486/0.3, allocations: 0.6465 MB / 494.6 MB, free: 4.98 MB / 362.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