Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 203.1 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 245.4 MB, free: 8.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007956/0.0007953, allocations: 97.3 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002333, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2306, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.3312, allocations: 77.93 MB / 486.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.3315, allocations: 76.8 kB / 486.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004789/0.3363, allocations: 1.519 MB / 488.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3363, allocations: 7.938 kB / 488.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.3364, allocations: 4 kB / 488.2 MB, free: 12.11 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.0005068/0.3369, allocations: 363.3 kB / 488.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.3369, allocations: 12.03 kB / 488.6 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002403/0.3372, allocations: 24.83 kB / 488.6 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.3374, allocations: 183.6 kB / 488.8 MB, free: 11.46 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.0001796/0.3376, allocations: 42.27 kB / 488.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.3376, allocations: 4.375 kB / 488.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003913/0.338, allocations: 165.4 kB / 489 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.3381, allocations: 3.938 kB / 489 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3381, allocations: 0 / 489 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3381, allocations: 4 kB / 489 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.3382, allocations: 39.97 kB / 489 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002153/0.3385, allocations: 186.4 kB / 489.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.3388, allocations: 174.4 kB / 489.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3389, allocations: 41.7 kB / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.3389, allocations: 0 / 489.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.3389, allocations: 34.5 kB / 489.5 MB, free: 10.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.3389, allocations: 0 / 489.5 MB, free: 10.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003625/0.3393, allocations: 129.4 kB / 489.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/0.3394, allocations: 89.09 kB / 489.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3395, allocations: 121.8 kB / 489.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.3395, allocations: 25.7 kB / 489.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.3396, allocations: 96.12 kB / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.3396, allocations: 4.031 kB / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.3396, allocations: 8 kB / 489.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3398, allocations: 318.8 kB / 490.2 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.43e-05/0.3398, allocations: 19.98 kB / 490.2 MB, free: 9.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-05/0.3399, allocations: 54 kB / 490.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/0.3401, allocations: 89.88 kB / 490.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3401, allocations: 0 / 490.4 MB, free: 9.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001829/0.3403, allocations: 101.7 kB / 490.5 MB, free: 9.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3403, allocations: 11.94 kB / 490.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3403, allocations: 224 / 490.5 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3403, allocations: 8 kB / 490.5 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.585e-05/0.3404, allocations: 23.92 kB / 490.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.3404, allocations: 0 / 490.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.365e-05/0.3405, allocations: 7.906 kB / 490.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.3405, allocations: 4 kB / 490.5 MB, free: 9.457 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.0001048/0.3406, allocations: 125.8 kB / 490.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.3408, allocations: 73.56 kB / 490.7 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.3408, allocations: 8.375 kB / 490.7 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3408, allocations: 8 kB / 490.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3408, allocations: 0 / 490.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3408, allocations: 7.922 kB / 490.8 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.341, allocations: 177.5 kB / 490.9 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.341, allocations: 0 / 490.9 MB, free: 9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.3411, allocations: 12 kB / 490.9 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3411, allocations: 3.938 kB / 490.9 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3411, allocations: 3.984 kB / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3412, allocations: 4 kB / 491 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3412, allocations: 0 / 491 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.3414, allocations: 129.9 kB / 491.1 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.3415, allocations: 85.14 kB / 491.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.3415, allocations: 15.92 kB / 491.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.246e-05/0.3416, allocations: 7.938 kB / 491.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.3416, allocations: 4 kB / 491.2 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.3417, allocations: 8 kB / 491.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.619e-05/0.3417, allocations: 95.27 kB / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3417, allocations: 0 / 491.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.3419, allocations: 15.98 kB / 491.3 MB, free: 8.582 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.0001378/0.3421, allocations: 99.25 kB / 491.4 MB, free: 8.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002018/0.3423, allocations: 68.03 kB / 491.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3423, allocations: 0 / 491.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.059e-05/0.3424, allocations: 8 kB / 491.5 MB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/0.343, allocations: 0.7171 MB / 492.2 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.3435, allocations: 227.5 kB / 492.4 MB, free: 7.402 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3438, allocations: 0.6926 MB / 493.1 MB, free: 6.684 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.3438, allocations: 11.44 kB / 493.1 MB, free: 6.672 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3438, allocations: 0 / 493.1 MB, free: 6.672 MB / 362.7 MB Notification: Performance of Templates: time 0.002401/0.3462, allocations: 0.9526 MB / 494.1 MB, free: 5.73 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches