Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 84.55 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002462/0.002462, allocations: 164.7 kB / 23.95 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.587/1.587, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 325.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.736e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00289/0.002917, allocations: 1.618 MB / 326.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.003969, allocations: 490.6 kB / 327.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.006e-05/0.004049, allocations: 1.25 kB / 327.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.159e-05/0.004091, allocations: 10.11 kB / 327.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.004268, allocations: 14.8 kB / 327.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.004522, allocations: 55.52 kB / 327.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.004663, allocations: 67.91 kB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.367e-05/0.004757, allocations: 5.688 kB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.004972, allocations: 52.12 kB / 327.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.264e-05/0.005044, allocations: 29.5 kB / 327.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.005068, allocations: 4.469 kB / 327.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.611e-05/0.005114, allocations: 7.75 kB / 327.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.005143, allocations: 17.53 kB / 327.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.005187, allocations: 16.16 kB / 327.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.005377, allocations: 82.47 kB / 327.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.005379, allocations: 0 / 327.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.01e-07/0.00538, allocations: 0 / 327.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.005384, allocations: 0 / 327.5 MB, free: 14.95 MB / 302.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.0006099/0.005994, allocations: 302.3 kB / 327.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.006035, allocations: 10.06 kB / 327.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.006267, allocations: 20.12 kB / 327.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.006499, allocations: 136 kB / 328 MB, free: 14.52 MB / 302.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.000112/0.006611, allocations: 38.64 kB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.006626, allocations: 3.312 kB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/0.007052, allocations: 168.9 kB / 328.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.007063, allocations: 4.125 kB / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.007079, allocations: 4.125 kB / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.007084, allocations: 0 / 328.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.007222, allocations: 36.58 kB / 328.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002132/0.007435, allocations: 130.5 kB / 328.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.007727, allocations: 82.08 kB / 328.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.007828, allocations: 36.91 kB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.007855, allocations: 1.5 kB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.007896, allocations: 41.19 kB / 328.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.007898, allocations: 1.062 kB / 328.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003736/0.008271, allocations: 116.7 kB / 328.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.886e-05/0.00837, allocations: 90.45 kB / 328.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.008492, allocations: 125.6 kB / 328.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.008514, allocations: 26.67 kB / 328.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/0.008569, allocations: 88.69 kB / 329 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.008594, allocations: 15.22 kB / 329 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.00863, allocations: 14.72 kB / 329 MB, free: 13.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.00879, allocations: 321.9 kB / 329.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.233e-05/0.008843, allocations: 14.5 kB / 329.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.163e-05/0.008904, allocations: 34.8 kB / 329.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.009011, allocations: 45.89 kB / 329.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.009012, allocations: 0 / 329.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001617/0.009174, allocations: 75.03 kB / 329.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.00919, allocations: 5.812 kB / 329.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.009195, allocations: 2.031 kB / 329.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.009212, allocations: 0.6094 kB / 329.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.917e-05/0.009281, allocations: 15.39 kB / 329.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.009288, allocations: 1.875 kB / 329.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.366e-05/0.009332, allocations: 7.281 kB / 329.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.009339, allocations: 1.797 kB / 329.5 MB, free: 13.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.000104/0.009443, allocations: 120 kB / 329.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.009585, allocations: 71.3 kB / 329.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.009626, allocations: 12.83 kB / 329.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.009631, allocations: 5.234 kB / 329.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.009638, allocations: 4.969 kB / 329.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.009641, allocations: 4.984 kB / 329.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.009753, allocations: 111.2 kB / 329.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.009754, allocations: 1.031 kB / 329.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.474e-05/0.009829, allocations: 15.61 kB / 329.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.009832, allocations: 1.75 kB / 329.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.009848, allocations: 6.422 kB / 329.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.00985, allocations: 1.156 kB / 329.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.009851, allocations: 0 / 329.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.0101, allocations: 125.9 kB / 330 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.01014, allocations: 10.91 kB / 330 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.01016, allocations: 11.53 kB / 330 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.154e-05/0.01023, allocations: 9.391 kB / 330 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.01027, allocations: 5.734 kB / 330 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.01028, allocations: 8.094 kB / 330 MB, free: 12.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.931e-05/0.01035, allocations: 98.61 kB / 330.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01035, allocations: 0 / 330.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.01055, allocations: 12.59 kB / 330.1 MB, free: 12.69 MB / 302.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.0001127/0.01067, allocations: 100.7 kB / 330.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001871/0.01085, allocations: 48.03 kB / 330.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01086, allocations: 0.9375 kB / 330.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.239e-05/0.0109, allocations: 11.64 kB / 330.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007561/0.01166, allocations: 0.7172 MB / 331 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.01203, allocations: 169.5 kB / 331.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.895e-05/0.01211, allocations: 79.7 kB / 331.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.751e-05/0.01214, allocations: 6.766 kB / 331.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.01217, allocations: 11.88 kB / 331.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01217, allocations: 1.094 kB / 331.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of Templates: time 0.003659/0.01583, allocations: 0.795 MB / 332.1 MB, free: 11.43 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.436792835593224]