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.001281/0.001281, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 200.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.618/1.618, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3732, allocations: 50.55 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004473/0.3778, allocations: 1.597 MB / 410.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3792, allocations: 0.4948 MB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.3794, allocations: 0 / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.426e-05/0.3795, allocations: 11.81 kB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.3798, allocations: 27.84 kB / 411.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.3802, allocations: 55.38 kB / 411.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.3804, allocations: 59.84 kB / 411.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.3806, allocations: 8 kB / 411.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.3808, allocations: 43.83 kB / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.236e-05/0.3809, allocations: 35.78 kB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.3809, allocations: 11.94 kB / 411.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.571e-05/0.381, allocations: 4 kB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.44e-05/0.381, allocations: 23.92 kB / 411.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.799e-05/0.3811, allocations: 27.86 kB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.3814, allocations: 63.78 kB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3814, allocations: 3.938 kB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3814, allocations: 0 / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.3814, allocations: 0 / 411.7 MB, free: 15.12 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.0007458/0.3822, allocations: 375.1 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.3822, allocations: 8.031 kB / 412.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002597/0.3825, allocations: 28.83 kB / 412.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.3828, allocations: 189.5 kB / 412.3 MB, free: 14.45 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 0.0001298/0.383, allocations: 38.19 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.383, allocations: 8.375 kB / 412.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.3834, allocations: 173 kB / 412.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3834, allocations: 0 / 412.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.3834, allocations: 4 kB / 412.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3835, allocations: 0 / 412.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.3836, allocations: 35.91 kB / 412.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002134/0.3838, allocations: 182.5 kB / 412.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004059/0.3842, allocations: 166.4 kB / 412.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3844, allocations: 41.64 kB / 412.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3844, allocations: 4 kB / 412.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.3844, allocations: 38.5 kB / 413 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.844e-06/0.3844, allocations: 0 / 413 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004129/0.3849, allocations: 121.5 kB / 413.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.385, allocations: 85.09 kB / 413.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.3851, allocations: 124.9 kB / 413.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3851, allocations: 25.7 kB / 413.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.779e-05/0.3852, allocations: 96.06 kB / 413.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.3853, allocations: 7.906 kB / 413.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.3853, allocations: 21.84 kB / 413.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003556/0.3857, allocations: 330.8 kB / 413.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.968e-05/0.3857, allocations: 19.98 kB / 413.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.861e-05/0.3858, allocations: 57.94 kB / 413.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.386, allocations: 77.94 kB / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.386, allocations: 0 / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001973/0.3862, allocations: 109.3 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.3862, allocations: 8 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3862, allocations: 0 / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.3863, allocations: 4.25 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.3864, allocations: 15.98 kB / 414.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3864, allocations: 4 kB / 414.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.814e-05/0.3865, allocations: 15.83 kB / 414.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.3865, allocations: 8.219 kB / 414.1 MB, free: 12.43 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 0.0001482/0.3866, allocations: 125.7 kB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3868, allocations: 69.62 kB / 414.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.3868, allocations: 16.36 kB / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3868, allocations: 0 / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.3869, allocations: 4 kB / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3869, allocations: 0 / 414.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.387, allocations: 173.5 kB / 414.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.387, allocations: 0 / 414.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.514e-05/0.3871, allocations: 19.92 kB / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.3871, allocations: 4 kB / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.3872, allocations: 0 / 414.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.3872, allocations: 3.938 kB / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3872, allocations: 0 / 414.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.3874, allocations: 121.9 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.119e-05/0.3875, allocations: 92.97 kB / 414.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.3875, allocations: 12 kB / 414.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.363e-05/0.3876, allocations: 4 kB / 414.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.3877, allocations: 0 / 414.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.3877, allocations: 7.984 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.3879, allocations: 95.45 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3879, allocations: 4 kB / 414.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002265/0.3881, allocations: 11.94 kB / 414.8 MB, free: 11.57 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.0001357/0.3883, allocations: 103.2 kB / 414.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.3885, allocations: 59.91 kB / 415 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3885, allocations: 0 / 415 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.085e-05/0.3886, allocations: 11.98 kB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007932/0.3894, allocations: 0.7227 MB / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004984/0.3899, allocations: 179.4 kB / 415.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3904, allocations: 0.6885 MB / 416.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.899e-05/0.3904, allocations: 7.984 kB / 416.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.3905, allocations: 15.44 kB / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3905, allocations: 0 / 416.6 MB, free: 9.699 MB / 334.1 MB Notification: Performance of Templates: time 0.003898/0.3944, allocations: 0.7679 MB / 417.4 MB, free: 8.941 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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