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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002675/0.002675, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.608/1.608, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 106.7 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008852/0.0008853, allocations: 35.95 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3177, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00291/0.3207, allocations: 1.635 MB / 401.1 MB, free: 31.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006708/0.3214, allocations: 447 kB / 401.5 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.415e-05/0.3214, allocations: 3.938 kB / 401.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.935e-05/0.3215, allocations: 6.031 kB / 401.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.3217, allocations: 7.938 kB / 401.6 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.3219, allocations: 35.95 kB / 401.6 MB, free: 31.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.322, allocations: 67.77 kB / 401.7 MB, free: 31.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3221, allocations: 15.98 kB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.3223, allocations: 35.8 kB / 401.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.899e-05/0.3224, allocations: 31.89 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.3224, allocations: 7.938 kB / 401.8 MB, free: 31.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.507e-05/0.3224, allocations: 0 / 401.8 MB, free: 31.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.3224, allocations: 7.984 kB / 401.8 MB, free: 31.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.84e-05/0.3225, allocations: 31.8 kB / 401.8 MB, free: 31.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.3226, allocations: 59.78 kB / 401.9 MB, free: 31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3227, allocations: 0 / 401.9 MB, free: 31 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3227, allocations: 4 kB / 401.9 MB, free: 31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.3227, allocations: 0 / 401.9 MB, free: 31 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.000656/0.3233, allocations: 372.8 kB / 402.2 MB, free: 30.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3234, allocations: 8.031 kB / 402.2 MB, free: 30.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.706e-05/0.3234, allocations: 12.84 kB / 402.2 MB, free: 30.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.3237, allocations: 184.2 kB / 402.4 MB, free: 30.35 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.0001537/0.3238, allocations: 46.19 kB / 402.5 MB, free: 30.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.3239, allocations: 4.375 kB / 402.5 MB, free: 30.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.3242, allocations: 169 kB / 402.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3242, allocations: 0 / 402.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3243, allocations: 0 / 402.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3243, allocations: 0 / 402.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.3244, allocations: 39.91 kB / 402.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.3245, allocations: 182.5 kB / 402.9 MB, free: 29.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.3248, allocations: 170.3 kB / 403 MB, free: 29.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.365e-05/0.3249, allocations: 41.7 kB / 403.1 MB, free: 29.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.3249, allocations: 4 kB / 403.1 MB, free: 29.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.325, allocations: 34.5 kB / 403.1 MB, free: 29.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.325, allocations: 3.938 kB / 403.1 MB, free: 29.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003324/0.3253, allocations: 117.7 kB / 403.2 MB, free: 29.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.3254, allocations: 85.11 kB / 403.3 MB, free: 29.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.861e-05/0.3254, allocations: 127.2 kB / 403.4 MB, free: 29.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.3255, allocations: 29.83 kB / 403.5 MB, free: 29.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.3255, allocations: 92.14 kB / 403.5 MB, free: 29.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.3255, allocations: 7.891 kB / 403.5 MB, free: 29.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-05/0.3256, allocations: 21.72 kB / 403.6 MB, free: 29.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.3256, allocations: 318.8 kB / 403.9 MB, free: 28.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.615e-05/0.3257, allocations: 19.98 kB / 403.9 MB, free: 28.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.402e-05/0.3257, allocations: 61.94 kB / 404 MB, free: 28.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.421e-05/0.3258, allocations: 77.94 kB / 404 MB, free: 28.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3258, allocations: 0 / 404 MB, free: 28.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001419/0.326, allocations: 105.3 kB / 404.1 MB, free: 28.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.326, allocations: 4 kB / 404.1 MB, free: 28.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.326, allocations: 4 kB / 404.1 MB, free: 28.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3261, allocations: 8.219 kB / 404.2 MB, free: 28.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.04e-05/0.3261, allocations: 11.98 kB / 404.2 MB, free: 28.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3262, allocations: 4 kB / 404.2 MB, free: 28.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.609e-05/0.3262, allocations: 4 kB / 404.2 MB, free: 28.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.3262, allocations: 8 kB / 404.2 MB, free: 28.35 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 ($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 7.761e-05/0.3263, allocations: 129.6 kB / 404.3 MB, free: 28.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.3264, allocations: 73.53 kB / 404.4 MB, free: 28.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/0.3264, allocations: 12.38 kB / 404.4 MB, free: 28.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3265, allocations: 0 / 404.4 MB, free: 28.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3265, allocations: 4 kB / 404.4 MB, free: 28.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.3265, allocations: 7.984 kB / 404.4 MB, free: 28.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.3266, allocations: 173.6 kB / 404.6 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3266, allocations: 0 / 404.6 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.3267, allocations: 11.94 kB / 404.6 MB, free: 27.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3267, allocations: 7.969 kB / 404.6 MB, free: 27.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3267, allocations: 11.94 kB / 404.6 MB, free: 27.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3267, allocations: 192 / 404.6 MB, free: 27.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3267, allocations: 0 / 404.6 MB, free: 27.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004042/0.3271, allocations: 0.7183 MB / 405.3 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.3272, allocations: 89.2 kB / 405.4 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.3272, allocations: 7.984 kB / 405.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.009e-05/0.3273, allocations: 8 kB / 405.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.3273, allocations: 4 kB / 405.4 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.3273, allocations: 4 kB / 405.4 MB, free: 26.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.424e-05/0.3274, allocations: 96.14 kB / 405.5 MB, free: 26.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3274, allocations: 0 / 405.5 MB, free: 26.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.3277, allocations: 15.94 kB / 405.5 MB, free: 26.84 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.813e-05/0.3278, allocations: 103.2 kB / 405.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.3279, allocations: 60.27 kB / 405.7 MB, free: 26.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3279, allocations: 4.062 kB / 405.7 MB, free: 26.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.328, allocations: 7.938 kB / 405.7 MB, free: 26.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.3285, allocations: 0.7142 MB / 406.4 MB, free: 25.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004546/0.329, allocations: 312.2 kB / 406.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000146/0.3292, allocations: 0.6965 MB / 407.4 MB, free: 24.85 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.232e-05/0.3292, allocations: 3.938 kB / 407.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.3292, allocations: 11.44 kB / 407.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3292, allocations: 4 kB / 407.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Templates: time 0.002765/0.332, allocations: 0.7117 MB / 408.2 MB, free: 24.12 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches