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.001651/0.001651, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.6 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000972/0.0009725, allocations: 99.36 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.00026, allocations: 8 kB / 356.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2709, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001587/0.2726, allocations: 1.296 MB / 409.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006481/0.2732, allocations: 462.1 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.257e-05/0.2733, allocations: 0 / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.2733, allocations: 3.938 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.2735, allocations: 11.94 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.2737, allocations: 40.48 kB / 409.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.575e-05/0.2738, allocations: 65.02 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2739, allocations: 8 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.2741, allocations: 34.5 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.124e-05/0.2742, allocations: 27.84 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2742, allocations: 4 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.203e-05/0.2742, allocations: 8 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.2743, allocations: 19.86 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.489e-05/0.2743, allocations: 53.55 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.142e-05/0.2744, allocations: 37.45 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.2744, allocations: 0 / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2744, allocations: 0 / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.2744, allocations: 0 / 410.1 MB, free: 25.62 MB / 298.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.0004901/0.2749, allocations: 361.9 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.275, allocations: 12.03 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.2752, allocations: 21.7 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.2754, allocations: 197.4 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.2755, allocations: 38.25 kB / 410.7 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.2756, allocations: 12.31 kB / 410.7 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.2759, allocations: 169.2 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.2759, allocations: 0 / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.2759, allocations: 4 kB / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.2759, allocations: 0 / 410.9 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.2761, allocations: 39.92 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00014/0.2762, allocations: 182.4 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.2764, allocations: 170.4 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.434e-05/0.2765, allocations: 49.69 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.2766, allocations: 0 / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2766, allocations: 38.5 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.2766, allocations: 0 / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003028/0.2769, allocations: 117.6 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.277, allocations: 89.02 kB / 411.6 MB, free: 23.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.774e-05/0.277, allocations: 121.8 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.2771, allocations: 29.7 kB / 411.7 MB, free: 23.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.914e-05/0.2771, allocations: 84.14 kB / 411.8 MB, free: 23.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.2771, allocations: 11.91 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.2771, allocations: 0 / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.2772, allocations: 323 kB / 412.1 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.783e-05/0.2773, allocations: 23.92 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.143e-05/0.2773, allocations: 57.94 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.2774, allocations: 85.94 kB / 412.3 MB, free: 23.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2774, allocations: 8 kB / 412.3 MB, free: 23.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001479/0.2776, allocations: 101.4 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2776, allocations: 8 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2776, allocations: 0 / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.2776, allocations: 4 kB / 412.4 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.347e-05/0.2777, allocations: 20.2 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.2777, allocations: 4 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.857e-05/0.2778, allocations: 15.83 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.2778, allocations: 7.938 kB / 412.5 MB, free: 22.95 MB / 298.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 7.065e-05/0.2779, allocations: 117.8 kB / 412.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.278, allocations: 77.53 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.278, allocations: 12.36 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.278, allocations: 4 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2781, allocations: 4 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2781, allocations: 320 / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.859e-05/0.2781, allocations: 169.6 kB / 412.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2782, allocations: 8 kB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.866e-05/0.2782, allocations: 19.86 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2782, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2783, allocations: 4 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2783, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2783, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.2785, allocations: 133.8 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.2785, allocations: 89.03 kB / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.2785, allocations: 4 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.076e-05/0.2786, allocations: 4 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.2786, allocations: 4 kB / 413.1 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.2787, allocations: 3.984 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.2787, allocations: 107.2 kB / 413.2 MB, free: 22.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2787, allocations: 0 / 413.2 MB, free: 22.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001993/0.2789, allocations: 8.188 kB / 413.2 MB, free: 22.09 MB / 298.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 9.466e-05/0.279, allocations: 103.2 kB / 413.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.2792, allocations: 60.22 kB / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2792, allocations: 4.062 kB / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.603e-05/0.2792, allocations: 12 kB / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.2797, allocations: 0.724 MB / 414.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003229/0.2801, allocations: 227.2 kB / 414.3 MB, free: 20.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.2802, allocations: 0.6926 MB / 415 MB, free: 20.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.2802, allocations: 11.44 kB / 415 MB, free: 20.17 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2803, allocations: 0 / 415 MB, free: 20.17 MB / 298.7 MB Notification: Performance of Templates: time 0.001982/0.2822, allocations: 0.9402 MB / 416 MB, free: 19.24 MB / 298.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/jenkins/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