Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 81.86 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 170.5 kB / 24.82 MB, free: 8.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.056/1.056, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/2.993e-05, allocations: 6.25 kB / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003078/0.003108, allocations: 1.63 MB / 275 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008512/0.003959, allocations: 0.5064 MB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.025e-05/0.00404, allocations: 0 / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.903e-05/0.004079, allocations: 7.922 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.004241, allocations: 19.8 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.004491, allocations: 51.81 kB / 275.6 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.004606, allocations: 67.78 kB / 275.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.987e-05/0.004696, allocations: 11.97 kB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.004876, allocations: 39.91 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.689e-05/0.004933, allocations: 35.89 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.004955, allocations: 4 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.556e-05/0.005001, allocations: 12 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.005033, allocations: 15.91 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.005061, allocations: 15.94 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.0052, allocations: 59.73 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.005203, allocations: 0 / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005204, allocations: 0 / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.005208, allocations: 0 / 275.9 MB, free: 14.8 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.0004454/0.005653, allocations: 404.3 kB / 276.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.005694, allocations: 12.03 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.005867, allocations: 32.86 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.006038, allocations: 136.5 kB / 276.5 MB, free: 14.17 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.747e-05/0.006115, allocations: 38.25 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.006125, allocations: 384 / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.006375, allocations: 169.4 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.006384, allocations: 192 / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.006395, allocations: 12.12 kB / 276.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.006402, allocations: 0 / 276.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.388e-05/0.006446, allocations: 15.98 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001334/0.006579, allocations: 124.8 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.006756, allocations: 82.23 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.157e-05/0.006798, allocations: 31.36 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.006817, allocations: 0 / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.006845, allocations: 45.33 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.006846, allocations: 0 / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001916/0.007038, allocations: 89.5 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.007092, allocations: 89.09 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.564e-05/0.007188, allocations: 181.8 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.007202, allocations: 29.7 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.007254, allocations: 138.8 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.007277, allocations: 7.953 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.007313, allocations: 19.38 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.007451, allocations: 0.4884 MB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.801e-05/0.007469, allocations: 8 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.772e-05/0.007497, allocations: 31.05 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.819e-05/0.007545, allocations: 43.11 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.007547, allocations: 0 / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.953e-05/0.007637, allocations: 61.58 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.007652, allocations: 6.5 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.007657, allocations: 0 / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.007671, allocations: 4 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.359e-05/0.007725, allocations: 4.094 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.007729, allocations: 7.938 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.527e-05/0.007755, allocations: 4 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.00776, allocations: 3.984 kB / 278.2 MB, free: 12.25 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 9.517e-05/0.007855, allocations: 164.5 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-05/0.007944, allocations: 65.64 kB / 278.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.007988, allocations: 16.42 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.00799, allocations: 0 / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.007992, allocations: 0 / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.007997, allocations: 3.938 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.753e-05/0.008084, allocations: 101.2 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.008086, allocations: 4 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.814e-05/0.008134, allocations: 12.42 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.008138, allocations: 4 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.008147, allocations: 7.938 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.008152, allocations: 7.938 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.008156, allocations: 3.984 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.767e-05/0.008234, allocations: 92 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.008266, allocations: 11.95 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.008284, allocations: 3.984 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.695e-05/0.008321, allocations: 8 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.00835, allocations: 4.031 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.008358, allocations: 4 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.113e-05/0.00841, allocations: 134.7 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00841, allocations: 0 / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001858/0.008595, allocations: 12 kB / 278.8 MB, free: 11.53 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.0001022/0.008698, allocations: 107.1 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.605e-05/0.008794, allocations: 27.67 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.008795, allocations: 0 / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.903e-05/0.008814, allocations: 23.81 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006282/0.009443, allocations: 1.064 MB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/0.009928, allocations: 183.2 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.902e-05/0.009967, allocations: 63.34 kB / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.131e-05/0.009988, allocations: 0 / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.01004, allocations: 78.19 kB / 280.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01004, allocations: 4.125 kB / 280.3 MB, free: 9.895 MB / 266.7 MB Notification: Performance of Templates: time 0.002951/0.01299, allocations: 0.8414 MB / 281.2 MB, free: 9.055 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8047810420393944]