Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 111.1 kB / 17.74 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 188.2 kB / 18.67 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 59.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4181, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.005282/0.4235, allocations: 1.587 MB / 403 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.4248, allocations: 450.8 kB / 403.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.425, allocations: 0 / 403.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.497e-05/0.4251, allocations: 3.938 kB / 403.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.4254, allocations: 19.88 kB / 403.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.4258, allocations: 39.88 kB / 403.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.426, allocations: 71.77 kB / 403.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.4261, allocations: 8 kB / 403.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.4264, allocations: 27.91 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.4265, allocations: 35.84 kB / 403.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.4265, allocations: 4 kB / 403.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.614e-05/0.4266, allocations: 4 kB / 403.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.288e-05/0.4266, allocations: 23.92 kB / 403.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.802e-05/0.4267, allocations: 27.8 kB / 403.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.4269, allocations: 67.72 kB / 403.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4269, allocations: 0 / 403.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.427, allocations: 0 / 403.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.427, allocations: 0 / 403.8 MB, free: 6.523 MB / 318.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.0009005/0.4279, allocations: 372.4 kB / 404.1 MB, free: 6.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.428, allocations: 8.031 kB / 404.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.428, allocations: 12.84 kB / 404.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.4285, allocations: 196.2 kB / 404.3 MB, free: 5.867 MB / 318.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.0001482/0.4286, allocations: 34.27 kB / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.4287, allocations: 4.375 kB / 404.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006378/0.4293, allocations: 176.9 kB / 404.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.4294, allocations: 0 / 404.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.4294, allocations: 7.984 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4294, allocations: 0 / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.4295, allocations: 35.97 kB / 404.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000247/0.4298, allocations: 182.5 kB / 404.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.4301, allocations: 174.4 kB / 404.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.4303, allocations: 37.7 kB / 405 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.4303, allocations: 0 / 405 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.4303, allocations: 42.44 kB / 405 MB, free: 5.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.4303, allocations: 0 / 405 MB, free: 5.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000393/0.4307, allocations: 117.6 kB / 405.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.4308, allocations: 85.11 kB / 405.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.431, allocations: 121.3 kB / 405.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.431, allocations: 29.7 kB / 405.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.4311, allocations: 92.12 kB / 405.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.4311, allocations: 7.906 kB / 405.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.4312, allocations: 17.72 kB / 405.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4313, allocations: 322.8 kB / 405.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.506e-05/0.4314, allocations: 20.02 kB / 405.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.663e-05/0.4314, allocations: 58.19 kB / 405.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.4316, allocations: 81.88 kB / 406 MB, free: 4.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.4316, allocations: 4 kB / 406 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002062/0.4318, allocations: 105.4 kB / 406.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.4318, allocations: 8 kB / 406.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.4319, allocations: 0 / 406.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4319, allocations: 7.984 kB / 406.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.651e-05/0.432, allocations: 15.94 kB / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.432, allocations: 0 / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.003e-05/0.4321, allocations: 7.984 kB / 406.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.4321, allocations: 8 kB / 406.1 MB, free: 3.867 MB / 318.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.0001035/0.4322, allocations: 122 kB / 406.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.4323, allocations: 77.47 kB / 406.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.4324, allocations: 16.36 kB / 406.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.4324, allocations: 0 / 406.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.4324, allocations: 4 kB / 406.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4324, allocations: 3.938 kB / 406.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.4326, allocations: 169.6 kB / 406.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4326, allocations: 0 / 406.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.853e-05/0.4327, allocations: 15.92 kB / 406.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.4327, allocations: 4 kB / 406.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.4327, allocations: 8 kB / 406.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4327, allocations: 0 / 406.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4327, allocations: 0 / 406.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.433, allocations: 125.8 kB / 406.6 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.748e-05/0.4331, allocations: 96.94 kB / 406.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.4331, allocations: 4 kB / 406.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.258e-05/0.4332, allocations: 8 kB / 406.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.4332, allocations: 0 / 406.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.4332, allocations: 7.984 kB / 406.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.742e-05/0.4333, allocations: 99.27 kB / 406.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4333, allocations: 0 / 406.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.4336, allocations: 16 kB / 406.9 MB, free: 3 MB / 318.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.0001569/0.4337, allocations: 104.1 kB / 407 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.434, allocations: 63.97 kB / 407 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.434, allocations: 0 / 407 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4e-05/0.434, allocations: 8 kB / 407 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.4348, allocations: 0.726 MB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004297/0.4352, allocations: 201.7 kB / 408 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.4355, allocations: 0.6961 MB / 408.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.4356, allocations: 11.44 kB / 408.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4356, allocations: 0 / 408.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of Templates: time 0.00315/0.4387, allocations: 0.9618 MB / 409.6 MB, free: 152 kB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches