Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.006053/0.006053, allocations: 105.2 kB / 21.98 MB, free: 5.219 MB / 14.72 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.001673/0.001673, allocations: 212 kB / 25.29 MB, free: 3.215 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 259 MB, free: 8.062 MB / 206.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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002903/0.002903, allocations: 67.89 kB / 379.8 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4418/0.4447, allocations: 53.36 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003466/0.4481, allocations: 1.621 MB / 434.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.4492, allocations: 0.522 MB / 435.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.305e-05/0.4493, allocations: 0 / 435.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.993e-05/0.4493, allocations: 11.92 kB / 435.3 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.4495, allocations: 15.81 kB / 435.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.4498, allocations: 47.94 kB / 435.4 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.4499, allocations: 71.77 kB / 435.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.45, allocations: 8 kB / 435.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.4502, allocations: 39.84 kB / 435.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.04e-05/0.4503, allocations: 39.77 kB / 435.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.4503, allocations: 4 kB / 435.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.649e-05/0.4503, allocations: 8 kB / 435.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.804e-05/0.4504, allocations: 19.94 kB / 435.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.4504, allocations: 23.86 kB / 435.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.4506, allocations: 75.3 kB / 435.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4506, allocations: 4 kB / 435.7 MB, free: 4.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4506, allocations: 0 / 435.7 MB, free: 4.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.4506, allocations: 0 / 435.7 MB, free: 4.473 MB / 334.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.0006493/0.4513, allocations: 304.6 kB / 436 MB, free: 4.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4513, allocations: 8.031 kB / 436 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.4516, allocations: 20.88 kB / 436 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.4519, allocations: 138.4 kB / 436.1 MB, free: 3.961 MB / 334.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.0001146/0.452, allocations: 34.25 kB / 436.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.452, allocations: 8.375 kB / 436.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.4524, allocations: 169 kB / 436.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.4525, allocations: 0 / 436.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.4525, allocations: 4 kB / 436.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.4525, allocations: 4 kB / 436.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.4526, allocations: 23.98 kB / 436.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002245/0.4528, allocations: 157.6 kB / 436.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.4531, allocations: 89.25 kB / 436.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.4532, allocations: 37.7 kB / 436.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.4532, allocations: 3.984 kB / 436.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.4533, allocations: 42.44 kB / 436.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.4533, allocations: 0 / 436.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003571/0.4537, allocations: 113.6 kB / 436.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.4537, allocations: 88.98 kB / 436.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.4539, allocations: 128.4 kB / 437 MB, free: 2.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.4539, allocations: 29.7 kB / 437.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.274e-05/0.454, allocations: 88.14 kB / 437.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.454, allocations: 3.953 kB / 437.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.294e-05/0.454, allocations: 33.64 kB / 437.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4542, allocations: 323 kB / 437.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-05/0.4543, allocations: 8 kB / 437.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.12e-05/0.4543, allocations: 61.98 kB / 437.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.4545, allocations: 86.11 kB / 437.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4545, allocations: 0 / 437.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000192/0.4547, allocations: 109.4 kB / 437.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.4547, allocations: 6.656 kB / 437.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4547, allocations: 4 kB / 437.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.4547, allocations: 0 / 437.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.393e-05/0.4548, allocations: 19.92 kB / 437.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.4548, allocations: 4 kB / 437.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.157e-05/0.4549, allocations: 8 kB / 437.8 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.4549, allocations: 4.219 kB / 437.8 MB, free: 2.098 MB / 334.1 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 0.0001178/0.455, allocations: 125.8 kB / 437.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.4551, allocations: 81.5 kB / 438 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.91e-05/0.4552, allocations: 12.38 kB / 438 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.4552, allocations: 0 / 438 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4552, allocations: 0 / 438 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4552, allocations: 0 / 438 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.4554, allocations: 148.7 kB / 438.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.4554, allocations: 0 / 438.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.4555, allocations: 15.92 kB / 438.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4555, allocations: 4 kB / 438.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.4555, allocations: 7.984 kB / 438.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4555, allocations: 0 / 438.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4555, allocations: 3.938 kB / 438.2 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.4557, allocations: 117.9 kB / 438.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.199e-05/0.4558, allocations: 19.88 kB / 438.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.4558, allocations: 12 kB / 438.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.74e-05/0.4558, allocations: 7.984 kB / 438.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.4559, allocations: 0 / 438.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.4559, allocations: 192 / 438.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.35e-05/0.456, allocations: 99.27 kB / 438.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.456, allocations: 3.938 kB / 438.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.4562, allocations: 12 kB / 438.5 MB, free: 1.355 MB / 334.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.0001291/0.4563, allocations: 105.9 kB / 438.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.4565, allocations: 59.86 kB / 438.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4565, allocations: 0 / 438.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.308e-05/0.4566, allocations: 11.98 kB / 438.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007568/0.4573, allocations: 0.7186 MB / 439.3 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000451/0.4578, allocations: 209.3 kB / 439.6 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.4581, allocations: 0.6963 MB / 440.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.4582, allocations: 11.44 kB / 440.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4582, allocations: 0 / 440.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Templates: time 0.003035/0.4612, allocations: 0.9819 MB / 441.2 MB, free: 14.48 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.361565071856603]