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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001127/0.001127, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2605, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002983/0.2635, allocations: 1.6 MB / 411.5 MB, free: 4 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009831/0.2645, allocations: 0.5026 MB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.337e-05/0.2646, allocations: 3.938 kB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.132e-05/0.2647, allocations: 3.938 kB / 412 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.2649, allocations: 11.88 kB / 412.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.2651, allocations: 51.88 kB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.2653, allocations: 67.83 kB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.2654, allocations: 15.98 kB / 412.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2655, allocations: 39.8 kB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.557e-05/0.2656, allocations: 35.83 kB / 412.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.2656, allocations: 4 kB / 412.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.513e-05/0.2657, allocations: 12 kB / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.139e-05/0.2657, allocations: 11.92 kB / 412.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.2658, allocations: 27.86 kB / 412.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.2659, allocations: 75.7 kB / 412.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2659, allocations: 4 kB / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2659, allocations: 0 / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2659, allocations: 0 / 412.4 MB, free: 15.13 MB / 334.1 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.0005342/0.2665, allocations: 371.1 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2665, allocations: 12.03 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.2667, allocations: 20.83 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.267, allocations: 193.4 kB / 413 MB, free: 14.47 MB / 334.1 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 9.312e-05/0.2671, allocations: 54.12 kB / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.2671, allocations: 384 / 413 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003566/0.2675, allocations: 165.1 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2675, allocations: 0 / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.2675, allocations: 4 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2675, allocations: 7.938 kB / 413.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.2676, allocations: 35.97 kB / 413.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.2678, allocations: 174.5 kB / 413.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.2681, allocations: 166.4 kB / 413.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.583e-05/0.2682, allocations: 49.7 kB / 413.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.2683, allocations: 3.984 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.2683, allocations: 34.5 kB / 413.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.2683, allocations: 0 / 413.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003276/0.2686, allocations: 113.5 kB / 413.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/0.2687, allocations: 93.17 kB / 413.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.2688, allocations: 121.8 kB / 414 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2689, allocations: 29.7 kB / 414 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.971e-05/0.2689, allocations: 88.14 kB / 414.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.2689, allocations: 11.89 kB / 414.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.269, allocations: 21.66 kB / 414.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2691, allocations: 326.8 kB / 414.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.922e-05/0.2691, allocations: 12 kB / 414.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.004e-05/0.2692, allocations: 65.98 kB / 414.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.2694, allocations: 81.86 kB / 414.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2694, allocations: 0 / 414.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001729/0.2695, allocations: 101.6 kB / 414.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2696, allocations: 12.22 kB / 414.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2696, allocations: 0 / 414.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2696, allocations: 8.188 kB / 414.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.865e-05/0.2697, allocations: 15.98 kB / 414.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.2697, allocations: 7.938 kB / 414.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.275e-05/0.2698, allocations: 15.84 kB / 414.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2698, allocations: 4 kB / 414.8 MB, free: 12.45 MB / 334.1 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 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.025e-05/0.2699, allocations: 117.8 kB / 414.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.27, allocations: 77.61 kB / 415 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.27, allocations: 12.38 kB / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.27, allocations: 0 / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2701, allocations: 7.938 kB / 415 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2701, allocations: 0 / 415 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.2702, allocations: 173.5 kB / 415.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2702, allocations: 0 / 415.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.492e-05/0.2703, allocations: 15.92 kB / 415.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.2703, allocations: 4 kB / 415.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.2703, allocations: 7.984 kB / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2703, allocations: 0 / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2703, allocations: 7.938 kB / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.2706, allocations: 117.9 kB / 415.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.2706, allocations: 97.02 kB / 415.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.2707, allocations: 4 kB / 415.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.887e-05/0.2707, allocations: 15.92 kB / 415.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.531e-05/0.2708, allocations: 0 / 415.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.2708, allocations: 8 kB / 415.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.796e-05/0.2708, allocations: 98.64 kB / 415.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2709, allocations: 0 / 415.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.2711, allocations: 12 kB / 415.5 MB, free: 11.58 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.2712, allocations: 99.23 kB / 415.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.2714, allocations: 56.28 kB / 415.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2714, allocations: 4.062 kB / 415.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.2714, allocations: 8 kB / 415.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006373/0.2721, allocations: 0.7321 MB / 416.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003627/0.2725, allocations: 201.2 kB / 416.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.2727, allocations: 0.6925 MB / 417.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.2728, allocations: 11.44 kB / 417.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2728, allocations: 0 / 417.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of Templates: time 0.002335/0.2751, allocations: 0.9833 MB / 418.3 MB, free: 8.711 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches