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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 76.66 kB / 20.67 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 147.5 kB / 23.94 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.109e-05/3.253e-05, allocations: 6.219 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002764/0.002797, allocations: 1.574 MB / 320.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007845/0.003581, allocations: 432 kB / 320.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/0.003665, allocations: 1.062 kB / 320.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.7e-05/0.003702, allocations: 4.734 kB / 320.9 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.003857, allocations: 19.23 kB / 321 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.004079, allocations: 46.08 kB / 321 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.004222, allocations: 72.75 kB / 321.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.004324, allocations: 12.3 kB / 321.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.004462, allocations: 38.69 kB / 321.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.004528, allocations: 28.44 kB / 321.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.004565, allocations: 3.75 kB / 321.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.722e-05/0.004583, allocations: 4.781 kB / 321.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.914e-05/0.004612, allocations: 14.7 kB / 321.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.451e-05/0.004656, allocations: 20.67 kB / 321.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.004816, allocations: 70 kB / 321.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.004819, allocations: 4 kB / 321.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.00482, allocations: 0 / 321.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.004824, allocations: 3.938 kB / 321.3 MB, free: 2.016 MB / 286.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.0005299/0.005354, allocations: 297.5 kB / 321.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.005397, allocations: 11.28 kB / 321.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/0.005449, allocations: 9.391 kB / 321.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.00569, allocations: 132.3 kB / 321.7 MB, free: 1.586 MB / 286.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 9.756e-05/0.005788, allocations: 39.02 kB / 321.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.005811, allocations: 4.156 kB / 321.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.006194, allocations: 177 kB / 321.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.006205, allocations: 192 / 321.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.006221, allocations: 9.516 kB / 321.9 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.006226, allocations: 0.9688 kB / 321.9 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.006361, allocations: 33.88 kB / 322 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.0065, allocations: 119.5 kB / 322.1 MB, free: 1.281 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.006762, allocations: 87.39 kB / 322.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.596e-05/0.006858, allocations: 37.44 kB / 322.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.006877, allocations: 1.984 kB / 322.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.006894, allocations: 41.61 kB / 322.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.006896, allocations: 0 / 322.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003644/0.00726, allocations: 113.4 kB / 322.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.007313, allocations: 89.39 kB / 322.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.664e-05/0.0074, allocations: 124.9 kB / 322.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.007413, allocations: 27.2 kB / 322.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.762e-05/0.00744, allocations: 92.27 kB / 322.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.007463, allocations: 10.17 kB / 322.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.007496, allocations: 14.31 kB / 322.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.614e-05/0.007543, allocations: 319.2 kB / 323 MB, free: 428 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.246e-05/0.007595, allocations: 13.88 kB / 323 MB, free: 424 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.852e-05/0.007643, allocations: 31.2 kB / 323.1 MB, free: 396 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.007747, allocations: 41.47 kB / 323.1 MB, free: 364 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.00775, allocations: 5.188 kB / 323.1 MB, free: 360 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000167/0.007917, allocations: 73.81 kB / 323.2 MB, free: 312 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.007933, allocations: 8.656 kB / 323.2 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.00794, allocations: 6.344 kB / 323.2 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.00796, allocations: 1.281 kB / 323.2 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.117e-05/0.008031, allocations: 11.14 kB / 323.2 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.008038, allocations: 1.469 kB / 323.2 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.601e-05/0.008084, allocations: 7.391 kB / 323.2 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.008092, allocations: 6.594 kB / 323.2 MB, free: 296 kB / 286.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 6.127e-05/0.008153, allocations: 120.2 kB / 323.3 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.008287, allocations: 78.55 kB / 323.4 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.955e-05/0.008327, allocations: 11.98 kB / 323.4 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.008331, allocations: 2.703 kB / 323.4 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.008337, allocations: 3.938 kB / 323.4 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.00834, allocations: 1.406 kB / 323.4 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.008448, allocations: 112.4 kB / 323.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.00845, allocations: 0 / 323.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.38e-05/0.008534, allocations: 12.38 kB / 323.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.008536, allocations: 4 kB / 323.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.008551, allocations: 4.672 kB / 323.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.008554, allocations: 0.6094 kB / 323.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.008556, allocations: 0 / 323.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002628/0.008818, allocations: 133.4 kB / 323.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.008861, allocations: 14.78 kB / 323.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.008892, allocations: 6.938 kB / 323.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.313e-05/0.008965, allocations: 3.5 kB / 323.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.009008, allocations: 7.297 kB / 323.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.009021, allocations: 7.016 kB / 323.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.076e-05/0.009102, allocations: 99.33 kB / 323.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.009102, allocations: 0 / 323.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.009321, allocations: 7.812 kB / 323.8 MB, free: 15.76 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.0001233/0.009444, allocations: 99.73 kB / 323.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001976/0.009641, allocations: 44.56 kB / 324 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.009644, allocations: 0 / 324 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.157e-05/0.009685, allocations: 7.953 kB / 324 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007934/0.01048, allocations: 0.7216 MB / 324.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.0109, allocations: 169.4 kB / 324.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.394e-05/0.01097, allocations: 73.86 kB / 324.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.011, allocations: 2.859 kB / 325 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.01104, allocations: 20.78 kB / 325 MB, free: 14.72 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.01104, allocations: 0 / 325 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Templates: time 0.004189/0.01523, allocations: 0.7876 MB / 325.8 MB, free: 14.61 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.332502283155918]