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.004064/0.004064, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001732/0.001732, allocations: 163.8 kB / 24.91 MB, free: 8.262 MB / 18.57 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.054/1.054, allocations: 177 MB / 205.2 MB, free: 5.426 MB / 186.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 2.414e-06/2.414e-06, allocations: 0 / 273.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.252e-05/3.494e-05, allocations: 6.25 kB / 273.4 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003728/0.003763, allocations: 1.689 MB / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.004904, allocations: 0.5063 MB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.005007, allocations: 4 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.11e-05/0.005048, allocations: 7.875 kB / 275.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.005256, allocations: 15.86 kB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.005557, allocations: 55.75 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.005712, allocations: 67.78 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.631e-05/0.005808, allocations: 15.97 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.006026, allocations: 39.91 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.006098, allocations: 27.95 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.006119, allocations: 7.938 kB / 275.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.006182, allocations: 12 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.697e-05/0.006209, allocations: 15.97 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.00624, allocations: 15.92 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.006391, allocations: 63.69 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.006395, allocations: 0 / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.006396, allocations: 0 / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.0064, allocations: 0 / 276 MB, free: 14.59 MB / 266.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.0004308/0.006831, allocations: 276.7 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.006871, allocations: 11.98 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.007078, allocations: 24.92 kB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.007269, allocations: 129.7 kB / 276.4 MB, free: 14.11 MB / 266.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 7.591e-05/0.007345, allocations: 38.25 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.007356, allocations: 4.375 kB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.007618, allocations: 154.1 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.007629, allocations: 4.125 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.00764, allocations: 4.125 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.007646, allocations: 0 / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.692e-05/0.007693, allocations: 23.98 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001101/0.007803, allocations: 81.72 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.007988, allocations: 69.2 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.034e-05/0.008029, allocations: 25.7 kB / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.008044, allocations: 0 / 276.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.008071, allocations: 38.5 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.113e-06/0.008072, allocations: 0 / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001691/0.008241, allocations: 73.59 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.008301, allocations: 89.23 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.008386, allocations: 137.3 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.008402, allocations: 29.7 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.877e-05/0.008431, allocations: 80.14 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.008457, allocations: 11.94 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.008493, allocations: 17.7 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.008606, allocations: 314.8 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.68e-05/0.008622, allocations: 4 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.598e-05/0.008658, allocations: 26.56 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.72e-05/0.008716, allocations: 34.52 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.008718, allocations: 0 / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.874e-05/0.008807, allocations: 53.61 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.008822, allocations: 4 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.008826, allocations: 0 / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.00884, allocations: 0 / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.484e-05/0.008905, allocations: 8 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.008909, allocations: 0 / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.951e-05/0.008939, allocations: 7.938 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.008943, allocations: 4.094 kB / 277.7 MB, free: 12.63 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 7.995e-05/0.009023, allocations: 129.6 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.124e-05/0.009104, allocations: 53.69 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.009141, allocations: 16.42 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.009143, allocations: 448 / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.083e-06/0.009145, allocations: 0 / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.00915, allocations: 3.938 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.673e-05/0.009237, allocations: 77.88 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.009239, allocations: 0 / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.009302, allocations: 15.98 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.009304, allocations: 4 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.009312, allocations: 0 / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.009314, allocations: 0 / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.00932, allocations: 11.92 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.547e-05/0.009396, allocations: 65.94 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.00943, allocations: 11.94 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.009449, allocations: 0 / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.495e-05/0.009494, allocations: 8 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.513e-05/0.009519, allocations: 0 / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.00953, allocations: 7.984 kB / 278.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.763e-05/0.009558, allocations: 24.86 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009558, allocations: 0 / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001779/0.009736, allocations: 16 kB / 278.2 MB, free: 12.13 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.0001085/0.009844, allocations: 76.36 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.009945, allocations: 40.72 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.009949, allocations: 0 / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.169e-05/0.00996, allocations: 4.859 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007815/0.01074, allocations: 0.7127 MB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.01127, allocations: 186.8 kB / 279.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.02e-05/0.01131, allocations: 59.34 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.555e-05/0.01133, allocations: 11.97 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.01138, allocations: 51.38 kB / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01139, allocations: 0 / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of Templates: time 0.002821/0.01421, allocations: 0.8387 MB / 280.1 MB, free: 10.09 MB / 266.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8354474809020758]