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.001875/0.001875, allocations: 80.31 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001555/0.001555, allocations: 171.5 kB / 25.61 MB, free: 8.547 MB / 18.57 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.056/1.056, allocations: 177.1 MB / 206 MB, free: 4.504 MB / 186.7 MB " [Timeout remaining time 179] 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.553e-06/1.553e-06, allocations: 0 / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.736e-05/2.892e-05, allocations: 5.688 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.005811/0.00584, allocations: 1.64 MB / 275.8 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008576/0.006698, allocations: 0.4938 MB / 276.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.318e-05/0.006781, allocations: 0 / 276.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.245e-05/0.006814, allocations: 3.938 kB / 276.3 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.006976, allocations: 21.73 kB / 276.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.01026, allocations: 47.83 kB / 276.4 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.01039, allocations: 79.69 kB / 276.5 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.26e-05/0.01048, allocations: 4 kB / 276.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.01066, allocations: 51.89 kB / 276.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.519e-05/0.01072, allocations: 24.5 kB / 276.6 MB, free: 2.043 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.01074, allocations: 8 kB / 276.6 MB, free: 2.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.207e-05/0.01078, allocations: 8 kB / 276.6 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.591e-05/0.01081, allocations: 15.97 kB / 276.6 MB, free: 2.012 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.01084, allocations: 15.92 kB / 276.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.01098, allocations: 59.75 kB / 276.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.01099, allocations: 0 / 276.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.01099, allocations: 0 / 276.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.01099, allocations: 0 / 276.7 MB, free: 1.938 MB / 250.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.0007065/0.0117, allocations: 408.2 kB / 277.1 MB, free: 1.504 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.01174, allocations: 12.03 kB / 277.1 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.01193, allocations: 28.88 kB / 277.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.0121, allocations: 128.6 kB / 277.2 MB, free: 1.312 MB / 250.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 8.329e-05/0.01219, allocations: 40.59 kB / 277.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.0122, allocations: 8.375 kB / 277.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.01245, allocations: 169.4 kB / 277.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.01246, allocations: 192 / 277.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.01247, allocations: 4.125 kB / 277.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.01247, allocations: 4 kB / 277.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.155e-05/0.01252, allocations: 15.98 kB / 277.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.01264, allocations: 120.8 kB / 277.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.01283, allocations: 86.22 kB / 277.7 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.028e-05/0.01287, allocations: 31.36 kB / 277.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.01288, allocations: 0 / 277.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003034/0.01592, allocations: 45.33 kB / 277.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.01592, allocations: 0 / 277.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002034/0.01612, allocations: 81.61 kB / 277.8 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.01619, allocations: 89.05 kB / 277.9 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.257e-05/0.01628, allocations: 185.8 kB / 278.1 MB, free: 312 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.01629, allocations: 25.7 kB / 278.1 MB, free: 280 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.077e-05/0.01634, allocations: 142.8 kB / 278.3 MB, free: 132 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.01637, allocations: 3.953 kB / 278.3 MB, free: 128 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.0164, allocations: 27.36 kB / 278.3 MB, free: 92 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.01656, allocations: 0.4884 MB / 278.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.649e-05/0.01657, allocations: 0 / 278.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.792e-05/0.0166, allocations: 35.03 kB / 278.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.081e-05/0.01665, allocations: 39.12 kB / 278.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01665, allocations: 0 / 278.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.277e-05/0.01675, allocations: 61.58 kB / 278.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01676, allocations: 4 kB / 278.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.01677, allocations: 4 kB / 278.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.01678, allocations: 0 / 278.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.528e-05/0.01684, allocations: 4.375 kB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.01685, allocations: 7.938 kB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.738e-05/0.01688, allocations: 8.094 kB / 278.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.01688, allocations: 7.938 kB / 278.9 MB, free: 15.39 MB / 266.7 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 8.556e-05/0.01697, allocations: 164.5 kB / 279.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.702e-05/0.01705, allocations: 65.64 kB / 279.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.182e-05/0.0171, allocations: 12.44 kB / 279.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.0171, allocations: 0 / 279.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-06/0.0171, allocations: 0 / 279.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.01711, allocations: 7.922 kB / 279.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.857e-05/0.0172, allocations: 105.2 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.0172, allocations: 0 / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.078e-05/0.01725, allocations: 16 kB / 279.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.01725, allocations: 4 kB / 279.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.01726, allocations: 3.984 kB / 279.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.01726, allocations: 0 / 279.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.01727, allocations: 7.922 kB / 279.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.786e-05/0.01734, allocations: 84.03 kB / 279.4 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.01738, allocations: 15.94 kB / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.0174, allocations: 0 / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.864e-05/0.01744, allocations: 11.98 kB / 279.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.474e-05/0.01746, allocations: 0 / 279.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.01747, allocations: 8.031 kB / 279.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.396e-05/0.01752, allocations: 138.1 kB / 279.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01752, allocations: 0 / 279.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001844/0.01771, allocations: 12 kB / 279.6 MB, free: 14.68 MB / 266.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 0.0001148/0.01782, allocations: 103.1 kB / 279.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.68e-05/0.01792, allocations: 35.66 kB / 279.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.01792, allocations: 4 kB / 279.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.351e-05/0.01794, allocations: 7.688 kB / 279.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.01855, allocations: 1.069 MB / 280.8 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.02204, allocations: 187.6 kB / 281 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.11e-05/0.02208, allocations: 67.2 kB / 281 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.484e-05/0.0221, allocations: 0 / 281 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.523e-05/0.02216, allocations: 74.2 kB / 281.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of SimCode: time 1.213e-06/0.02216, allocations: 0 / 281.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of Templates: time 0.00582/0.02798, allocations: 0.8693 MB / 282 MB, free: 12.18 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7119930759072304]