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.001382/0.001382, allocations: 88.48 kB / 20.78 MB, free: 0.5703 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.001406/0.001406, allocations: 152.7 kB / 24.06 MB, free: 3.547 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.585/1.585, allocations: 173.3 MB / 200.6 MB, free: 12.84 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.843e-06/1.843e-06, allocations: 0 / 319.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.261e-05/3.445e-05, allocations: 10.78 kB / 319.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002693/0.002727, allocations: 1.573 MB / 320.7 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007786/0.003506, allocations: 436.5 kB / 321.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.664e-05/0.003583, allocations: 1.375 kB / 321.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.195e-05/0.003615, allocations: 3.938 kB / 321.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.003776, allocations: 22.5 kB / 321.2 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.003974, allocations: 35.92 kB / 321.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.004106, allocations: 67.27 kB / 321.3 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.004214, allocations: 14.12 kB / 321.3 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.004359, allocations: 44.25 kB / 321.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.635e-05/0.004425, allocations: 28.44 kB / 321.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.004455, allocations: 5.781 kB / 321.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.641e-05/0.004472, allocations: 4.469 kB / 321.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.135e-05/0.004503, allocations: 9.25 kB / 321.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.739e-05/0.004551, allocations: 21.05 kB / 321.4 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.0047, allocations: 70.52 kB / 321.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.004703, allocations: 0 / 321.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.004704, allocations: 3.938 kB / 321.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.004715, allocations: 4 kB / 321.5 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.0005381/0.005253, allocations: 296.8 kB / 321.8 MB, free: 1.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.005301, allocations: 10.12 kB / 321.8 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.005348, allocations: 8.609 kB / 321.8 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.005558, allocations: 135.2 kB / 321.9 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 0.000101/0.005659, allocations: 39.42 kB / 321.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.00568, allocations: 7.156 kB / 321.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/0.006106, allocations: 169.1 kB / 322.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.006119, allocations: 1.469 kB / 322.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.006134, allocations: 4.125 kB / 322.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.00614, allocations: 1.5 kB / 322.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.006281, allocations: 32.89 kB / 322.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.006447, allocations: 116.3 kB / 322.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.00674, allocations: 91.3 kB / 322.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.725e-05/0.006837, allocations: 45.38 kB / 322.4 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.006859, allocations: 2.312 kB / 322.4 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.006873, allocations: 32.78 kB / 322.4 MB, free: 1.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.006874, allocations: 3.938 kB / 322.4 MB, free: 1.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003635/0.007238, allocations: 113.6 kB / 322.5 MB, free: 1.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.007298, allocations: 90.45 kB / 322.6 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.345e-05/0.007391, allocations: 122.8 kB / 322.8 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.007407, allocations: 30.8 kB / 322.8 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.06e-05/0.007438, allocations: 88.36 kB / 322.9 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.00746, allocations: 10.17 kB / 322.9 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.007495, allocations: 19.12 kB / 322.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.865e-05/0.007554, allocations: 318.4 kB / 323.2 MB, free: 428 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.007603, allocations: 10.31 kB / 323.2 MB, free: 428 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.699e-05/0.00765, allocations: 30.7 kB / 323.3 MB, free: 400 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.537e-05/0.007746, allocations: 45.78 kB / 323.3 MB, free: 364 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.007748, allocations: 0 / 323.3 MB, free: 364 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001346/0.007883, allocations: 78.38 kB / 323.4 MB, free: 312 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.007901, allocations: 7.031 kB / 323.4 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.007906, allocations: 0 / 323.4 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.007924, allocations: 1.531 kB / 323.4 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.284e-05/0.007997, allocations: 11.48 kB / 323.4 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.008004, allocations: 1.984 kB / 323.4 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.972e-05/0.008043, allocations: 7.516 kB / 323.4 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.00805, allocations: 2.109 kB / 323.4 MB, free: 304 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.387e-05/0.008114, allocations: 119.7 kB / 323.5 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.008231, allocations: 79.09 kB / 323.6 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.008269, allocations: 8.438 kB / 323.6 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.008272, allocations: 1.031 kB / 323.6 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.008278, allocations: 5.031 kB / 323.6 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.008283, allocations: 1.609 kB / 323.6 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.008407, allocations: 118.6 kB / 323.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.008408, allocations: 448 / 323.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.008486, allocations: 12.06 kB / 323.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.008489, allocations: 1.641 kB / 323.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.008507, allocations: 10.08 kB / 323.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.00851, allocations: 1.953 kB / 323.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.008512, allocations: 1.281 kB / 323.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.008779, allocations: 124.8 kB / 323.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.235e-05/0.008851, allocations: 19.75 kB / 323.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.008879, allocations: 6.156 kB / 323.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.006e-05/0.008949, allocations: 5.969 kB / 323.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.008989, allocations: 4.594 kB / 323.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.009002, allocations: 3.906 kB / 323.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.728e-05/0.009089, allocations: 98.69 kB / 324 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.00909, allocations: 4 kB / 324 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000205/0.009295, allocations: 9 kB / 324 MB, free: 15.77 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.0001413/0.009436, allocations: 96.34 kB / 324.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.009628, allocations: 51.84 kB / 324.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.00963, allocations: 0 / 324.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.709e-05/0.009667, allocations: 7.797 kB / 324.2 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.0008046/0.01047, allocations: 0.7222 MB / 324.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004432/0.01091, allocations: 167.6 kB / 325.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.934e-05/0.011, allocations: 75.31 kB / 325.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.889e-05/0.01103, allocations: 2.828 kB / 325.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.01107, allocations: 15.94 kB / 325.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.01107, allocations: 0 / 325.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Templates: time 0.003921/0.01499, allocations: 0.7928 MB / 325.9 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.470621548593044]