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.00132/0.00132, allocations: 107 kB / 17.74 MB, free: 5.363 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.00123/0.00123, allocations: 184.5 kB / 18.66 MB, free: 4.441 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 55.91 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.308, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003191/0.3113, allocations: 1.586 MB / 403 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008329/0.3121, allocations: 446.9 kB / 403.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.987e-05/0.3122, allocations: 0 / 403.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.064e-05/0.3123, allocations: 7.875 kB / 403.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.3125, allocations: 19.88 kB / 403.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.3128, allocations: 35.94 kB / 403.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.3129, allocations: 71.77 kB / 403.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.313, allocations: 4 kB / 403.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.3132, allocations: 39.84 kB / 403.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.113e-05/0.3132, allocations: 35.84 kB / 403.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.3133, allocations: 4 kB / 403.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.3133, allocations: 4 kB / 403.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.903e-05/0.3133, allocations: 15.92 kB / 403.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.809e-05/0.3134, allocations: 27.8 kB / 403.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3135, allocations: 63.78 kB / 403.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3135, allocations: 0 / 403.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3135, allocations: 0 / 403.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.3135, allocations: 3.938 kB / 403.8 MB, free: 6.492 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.000579/0.3141, allocations: 375.2 kB / 404.1 MB, free: 6.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3142, allocations: 8.031 kB / 404.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.3142, allocations: 12.84 kB / 404.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.3145, allocations: 197.4 kB / 404.3 MB, free: 5.832 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.0001036/0.3146, allocations: 30.27 kB / 404.4 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.3146, allocations: 8.375 kB / 404.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003967/0.315, allocations: 169 kB / 404.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3151, allocations: 0 / 404.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.3151, allocations: 4 kB / 404.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3151, allocations: 3.938 kB / 404.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.3152, allocations: 35.91 kB / 404.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002075/0.3154, allocations: 182.5 kB / 404.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.3158, allocations: 170.4 kB / 404.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.497e-05/0.3159, allocations: 37.7 kB / 405 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.3159, allocations: 0 / 405 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.3159, allocations: 46.5 kB / 405 MB, free: 5.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.3159, allocations: 0 / 405 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003351/0.3163, allocations: 113.5 kB / 405.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.3163, allocations: 85.11 kB / 405.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3165, allocations: 120.2 kB / 405.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3165, allocations: 29.7 kB / 405.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.115e-05/0.3165, allocations: 92.25 kB / 405.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.3166, allocations: 11.91 kB / 405.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.3166, allocations: 25.64 kB / 405.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3168, allocations: 318.8 kB / 405.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.25e-05/0.3168, allocations: 15.98 kB / 405.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.097e-05/0.3169, allocations: 61.94 kB / 405.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.317, allocations: 77.88 kB / 405.9 MB, free: 4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.317, allocations: 0 / 405.9 MB, free: 4 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001718/0.3172, allocations: 105.4 kB / 406 MB, free: 3.891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3172, allocations: 8 kB / 406.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3172, allocations: 3.984 kB / 406.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.3173, allocations: 7.984 kB / 406.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.361e-05/0.3174, allocations: 16.22 kB / 406.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3174, allocations: 3.938 kB / 406.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.302e-05/0.3174, allocations: 8.234 kB / 406.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.3174, allocations: 4 kB / 406.1 MB, free: 3.84 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 9.341e-05/0.3175, allocations: 121.8 kB / 406.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.3177, allocations: 81.53 kB / 406.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.157e-05/0.3177, allocations: 12.3 kB / 406.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3177, allocations: 0 / 406.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3177, allocations: 4 kB / 406.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3178, allocations: 7.938 kB / 406.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.3179, allocations: 173.6 kB / 406.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3179, allocations: 0 / 406.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.436e-05/0.318, allocations: 15.92 kB / 406.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.318, allocations: 4 kB / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.318, allocations: 0 / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.318, allocations: 0 / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.318, allocations: 0 / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.3182, allocations: 129.8 kB / 406.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.3183, allocations: 92.94 kB / 406.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.3183, allocations: 8 kB / 406.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.873e-05/0.3184, allocations: 4 kB / 406.7 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.3185, allocations: 3.938 kB / 406.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3185, allocations: 7.984 kB / 406.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.028e-05/0.3185, allocations: 99.27 kB / 406.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3185, allocations: 0 / 406.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002054/0.3188, allocations: 16 kB / 406.9 MB, free: 2.969 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.0001195/0.3189, allocations: 104 kB / 407 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.3191, allocations: 51.91 kB / 407 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3191, allocations: 0 / 407 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.994e-05/0.3191, allocations: 12 kB / 407 MB, free: 2.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006234/0.3198, allocations: 0.7342 MB / 407.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.3202, allocations: 193.3 kB / 408 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.3204, allocations: 0.6922 MB / 408.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.198e-05/0.3205, allocations: 11.44 kB / 408.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3205, allocations: 4.062 kB / 408.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of Templates: time 0.002564/0.3231, allocations: 0.9756 MB / 409.6 MB, free: 116 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