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.002099/0.002099, allocations: 90.31 kB / 20.69 MB, free: 1.02 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.002556/0.002556, allocations: 157.5 kB / 23.95 MB, free: 4.145 MB / 14.72 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 1.561/1.561, allocations: 177 MB / 204.1 MB, free: 9.141 MB / 190.1 MB " [Timeout remaining time 178] 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.563e-06/1.563e-06, allocations: 0 / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.918e-05/2.074e-05, allocations: 6.281 kB / 325 MB, free: 480 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002517/0.002538, allocations: 1.6 MB / 326.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009436/0.003482, allocations: 499.4 kB / 327.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.392e-05/0.003545, allocations: 0.9688 kB / 327.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.122e-05/0.003577, allocations: 5.688 kB / 327.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.003719, allocations: 15.36 kB / 327.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.00396, allocations: 48.12 kB / 327.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.004093, allocations: 67.3 kB / 327.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.567e-05/0.004179, allocations: 9.578 kB / 327.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.004353, allocations: 52.52 kB / 327.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.536e-05/0.004419, allocations: 29.06 kB / 327.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.00444, allocations: 5.188 kB / 327.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.034e-05/0.00448, allocations: 7.281 kB / 327.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.082e-05/0.004511, allocations: 21.05 kB / 327.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.819e-05/0.004559, allocations: 17.12 kB / 327.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.004715, allocations: 73.8 kB / 327.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.004718, allocations: 0 / 327.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.004718, allocations: 3.938 kB / 327.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.004727, allocations: 0 / 327.5 MB, free: 14.89 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.0005275/0.005254, allocations: 306.1 kB / 327.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.005289, allocations: 17.86 kB / 327.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.005506, allocations: 21.19 kB / 327.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.005737, allocations: 130.4 kB / 327.9 MB, free: 14.45 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 8.921e-05/0.005827, allocations: 35.2 kB / 328 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.005849, allocations: 8.594 kB / 328 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.00625, allocations: 160.5 kB / 328.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.006259, allocations: 5.312 kB / 328.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.006275, allocations: 8.125 kB / 328.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.006279, allocations: 1.094 kB / 328.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.006412, allocations: 33.69 kB / 328.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.00658, allocations: 128.1 kB / 328.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.006857, allocations: 95.41 kB / 328.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.689e-05/0.006954, allocations: 39.78 kB / 328.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.006973, allocations: 0.9844 kB / 328.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.007001, allocations: 38.44 kB / 328.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.007002, allocations: 0 / 328.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003626/0.007365, allocations: 110.8 kB / 328.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.007443, allocations: 90.09 kB / 328.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.007561, allocations: 122.4 kB / 328.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.007585, allocations: 30.89 kB / 328.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.961e-05/0.007634, allocations: 88.36 kB / 328.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.007657, allocations: 17.83 kB / 328.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.007694, allocations: 19.25 kB / 328.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.007841, allocations: 323.7 kB / 329.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.813e-05/0.007889, allocations: 9.484 kB / 329.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.674e-05/0.007956, allocations: 34.48 kB / 329.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.00806, allocations: 42.78 kB / 329.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.008062, allocations: 0 / 329.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001583/0.00822, allocations: 78.45 kB / 329.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.008233, allocations: 5.375 kB / 329.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.008238, allocations: 2.031 kB / 329.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.008252, allocations: 1.531 kB / 329.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.956e-05/0.008322, allocations: 14.69 kB / 329.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.008327, allocations: 1.125 kB / 329.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.105e-05/0.008368, allocations: 4.094 kB / 329.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.008374, allocations: 2.75 kB / 329.4 MB, free: 13.14 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.0001037/0.008478, allocations: 119.1 kB / 329.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.00862, allocations: 71.2 kB / 329.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.49e-05/0.008655, allocations: 16.97 kB / 329.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.008657, allocations: 1.344 kB / 329.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.008665, allocations: 5.609 kB / 329.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.008668, allocations: 0 / 329.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.008779, allocations: 117.1 kB / 329.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.008781, allocations: 3.938 kB / 329.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.554e-05/0.008856, allocations: 12.38 kB / 329.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.008861, allocations: 4 kB / 329.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.008874, allocations: 2.688 kB / 329.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.008876, allocations: 2.297 kB / 329.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.008879, allocations: 7.984 kB / 329.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.009131, allocations: 122.8 kB / 329.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.009172, allocations: 15.58 kB / 329.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.0092, allocations: 10.11 kB / 329.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.944e-05/0.009269, allocations: 4.094 kB / 330 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.009305, allocations: 9.953 kB / 330 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.009316, allocations: 3.922 kB / 330 MB, free: 12.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.582e-05/0.009392, allocations: 102.5 kB / 330.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.009392, allocations: 1.062 kB / 330.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002051/0.009597, allocations: 8.031 kB / 330.1 MB, free: 12.62 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.000126/0.009723, allocations: 106 kB / 330.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001867/0.009909, allocations: 44.2 kB / 330.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.009911, allocations: 0.875 kB / 330.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.00995, allocations: 6.938 kB / 330.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007718/0.01072, allocations: 0.7222 MB / 331 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.01112, allocations: 169.4 kB / 331.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.229e-05/0.0112, allocations: 80 kB / 331.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.551e-05/0.01123, allocations: 2.406 kB / 331.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.01127, allocations: 15.72 kB / 331.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.01127, allocations: 1.188 kB / 331.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Templates: time 0.003525/0.01479, allocations: 0.7859 MB / 332 MB, free: 11.36 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.4824791662395]