Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.001201, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001633/0.002834, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009874/0.0009874, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001337/0.002324, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9409/0.9409, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09247/1.033, allocations: 53.87 MB / 243.9 MB, free: 14.87 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.34e-05/1.474e-05, allocations: 5.406 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001775/0.00179, allocations: 1.693 MB / 246.9 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005128/0.002302, allocations: 0.5102 MB / 247.4 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.387e-05/0.002356, allocations: 3.938 kB / 247.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.13e-05/0.002378, allocations: 3.938 kB / 247.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.701e-05/0.002435, allocations: 19.8 kB / 247.4 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.00258, allocations: 47.88 kB / 247.5 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.211e-05/0.002672, allocations: 67.78 kB / 247.6 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.488e-05/0.002747, allocations: 7.984 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.00291, allocations: 67.77 kB / 247.6 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.923e-05/0.002959, allocations: 27.91 kB / 247.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.002976, allocations: 8 kB / 247.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.772e-05/0.003023, allocations: 7.984 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.003042, allocations: 11.94 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.576e-05/0.003068, allocations: 19.92 kB / 247.7 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.00317, allocations: 39.84 kB / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.003178, allocations: 4 kB / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.003179, allocations: 0 / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.003186, allocations: 0 / 247.7 MB, free: 11.02 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.0003575/0.003544, allocations: 292.3 kB / 248 MB, free: 10.71 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.003573, allocations: 16.62 kB / 248 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.003745, allocations: 102 kB / 248.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.003893, allocations: 133.6 kB / 248.3 MB, free: 10.42 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 6.73e-05/0.00396, allocations: 30.27 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.003973, allocations: 8.375 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.00416, allocations: 154.1 kB / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.72e-06/0.004165, allocations: 192 / 248.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.004176, allocations: 16.12 kB / 248.5 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.004179, allocations: 0 / 248.5 MB, free: 10.19 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.102e-05/0.00421, allocations: 15.92 kB / 248.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.845e-05/0.004289, allocations: 77.78 kB / 248.6 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.00442, allocations: 77.14 kB / 248.6 MB, free: 9.984 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.414e-05/0.004444, allocations: 21.72 kB / 248.7 MB, free: 9.957 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.004463, allocations: 11.97 kB / 248.7 MB, free: 9.945 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.004479, allocations: 30.56 kB / 248.7 MB, free: 9.906 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 7.81e-07/0.00448, allocations: 0 / 248.7 MB, free: 9.906 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001265/0.004606, allocations: 77.61 kB / 248.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.004651, allocations: 81.11 kB / 248.9 MB, free: 9.727 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.703e-05/0.004708, allocations: 134.6 kB / 249 MB, free: 9.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.004727, allocations: 25.7 kB / 249 MB, free: 9.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.334e-05/0.004751, allocations: 84.14 kB / 249.1 MB, free: 9.465 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.004771, allocations: 15.86 kB / 249.1 MB, free: 9.449 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.004797, allocations: 17.72 kB / 249.1 MB, free: 9.426 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.383e-05/0.004871, allocations: 322.8 kB / 249.5 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.00488, allocations: 4 kB / 249.5 MB, free: 9.098 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.679e-05/0.004897, allocations: 22.52 kB / 249.5 MB, free: 9.066 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.194e-05/0.004929, allocations: 30.69 kB / 249.5 MB, free: 9.027 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.004931, allocations: 0 / 249.5 MB, free: 9.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 4.615e-05/0.004977, allocations: 53.62 kB / 249.6 MB, free: 8.969 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-06/0.004986, allocations: 4 kB / 249.6 MB, free: 8.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.00499, allocations: 0 / 249.6 MB, free: 8.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.664e-06/0.004997, allocations: 4 kB / 249.6 MB, free: 8.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.377e-05/0.005041, allocations: 12.02 kB / 249.6 MB, free: 8.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.005045, allocations: 8 kB / 249.6 MB, free: 8.941 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.005063, allocations: 3.938 kB / 249.6 MB, free: 8.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-06/0.005068, allocations: 4 kB / 249.6 MB, free: 8.934 MB / 250.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 5.146e-05/0.005119, allocations: 113.8 kB / 249.7 MB, free: 8.812 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.005164, allocations: 53.67 kB / 249.8 MB, free: 8.754 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.258e-05/0.005187, allocations: 12.44 kB / 249.8 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.005188, allocations: 3.938 kB / 249.8 MB, free: 8.738 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.005189, allocations: 7.938 kB / 249.8 MB, free: 8.73 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.005194, allocations: 7.922 kB / 249.8 MB, free: 8.723 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.721e-05/0.005251, allocations: 65.91 kB / 249.9 MB, free: 8.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.005253, allocations: 8.422 kB / 249.9 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.005292, allocations: 15.98 kB / 249.9 MB, free: 8.617 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.137e-05/0.005313, allocations: 7.953 kB / 249.9 MB, free: 8.609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.005315, allocations: 4 kB / 249.9 MB, free: 8.605 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.005321, allocations: 4 kB / 249.9 MB, free: 8.602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.005323, allocations: 3.984 kB / 249.9 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.005324, allocations: 0 / 249.9 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.724e-05/0.005372, allocations: 69.92 kB / 250 MB, free: 8.508 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.005388, allocations: 11.92 kB / 250 MB, free: 8.496 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.469e-05/0.005412, allocations: 4.031 kB / 250 MB, free: 8.492 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.909e-05/0.005431, allocations: 4 kB / 250 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.005437, allocations: 4 kB / 250 MB, free: 8.484 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.595e-05/0.005453, allocations: 23.8 kB / 250 MB, free: 8.461 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005453, allocations: 0 / 250 MB, free: 8.461 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.509e-05/0.005548, allocations: 8 kB / 250 MB, free: 8.453 MB / 250.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 6.389e-05/0.005612, allocations: 84.41 kB / 250.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.233e-05/0.005685, allocations: 32.78 kB / 250.1 MB, free: 8.328 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.005688, allocations: 0 / 250.1 MB, free: 8.328 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.808e-05/0.005707, allocations: 17.02 kB / 250.2 MB, free: 8.309 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.006047, allocations: 0.7414 MB / 250.9 MB, free: 7.535 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006046/0.006652, allocations: 194.5 kB / 251.1 MB, free: 7.32 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.118e-05/0.006683, allocations: 63.34 kB / 251.1 MB, free: 7.238 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.623e-05/0.006699, allocations: 3.984 kB / 251.1 MB, free: 7.234 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.006743, allocations: 59.53 kB / 251.2 MB, free: 7.176 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.006743, allocations: 4 kB / 251.2 MB, free: 7.172 MB / 250.7 MB Notification: Performance of Templates: time 0.001988/0.008731, allocations: 0.8305 MB / 252 MB, free: 6.352 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.454360991716385]