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.0009298/0.0009298, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001323/0.002252, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009218/0.0009218, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001212/0.002134, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9687/0.9687, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1013/1.07, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.883e-06/1.883e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.363e-05, allocations: 6.25 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003793/0.003817, allocations: 1.692 MB / 246.2 MB, free: 12.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009339/0.004751, allocations: 0.511 MB / 246.7 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.991e-05/0.004831, allocations: 0 / 246.7 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.004865, allocations: 7.875 kB / 246.7 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.004983, allocations: 19.8 kB / 246.8 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.005215, allocations: 51.86 kB / 246.8 MB, free: 12.01 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.005384, allocations: 71.73 kB / 246.9 MB, free: 11.94 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.005485, allocations: 7.984 kB / 246.9 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003233/0.005809, allocations: 59.83 kB / 247 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.679e-05/0.005896, allocations: 27.89 kB / 247 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.005926, allocations: 4 kB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.877e-05/0.006015, allocations: 8 kB / 247 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.006043, allocations: 11.94 kB / 247 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.006078, allocations: 16 kB / 247 MB, free: 11.81 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.006263, allocations: 47.77 kB / 247.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.841e-05/0.006281, allocations: 0 / 247.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.006283, allocations: 7.938 kB / 247.1 MB, free: 11.75 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.006299, allocations: 0 / 247.1 MB, free: 11.75 MB / 250.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.0005179/0.006817, allocations: 296.3 kB / 247.4 MB, free: 11.44 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.006857, allocations: 12.03 kB / 247.4 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.007119, allocations: 94.03 kB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.007339, allocations: 141.2 kB / 247.6 MB, free: 11.16 MB / 250.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 0.0001165/0.007455, allocations: 34.25 kB / 247.6 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.00747, allocations: 8.375 kB / 247.6 MB, free: 11.11 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.007749, allocations: 154.1 kB / 247.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.007757, allocations: 192 / 247.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.00777, allocations: 8.125 kB / 247.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.007777, allocations: 4 kB / 247.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.647e-05/0.007823, allocations: 11.98 kB / 247.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.007948, allocations: 77.78 kB / 247.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.00816, allocations: 65.2 kB / 248 MB, free: 10.74 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.151e-05/0.008201, allocations: 29.72 kB / 248 MB, free: 10.71 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.008228, allocations: 0 / 248 MB, free: 10.71 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.008257, allocations: 42.48 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.008258, allocations: 0 / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001765/0.008434, allocations: 73.8 kB / 248.1 MB, free: 10.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.008501, allocations: 85.17 kB / 248.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.281e-05/0.008594, allocations: 134.6 kB / 248.3 MB, free: 10.33 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.008607, allocations: 25.7 kB / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.488e-05/0.008642, allocations: 88.12 kB / 248.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.008669, allocations: 11.83 kB / 248.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.092e-05/0.00871, allocations: 25.83 kB / 248.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.008813, allocations: 318.8 kB / 248.8 MB, free: 9.848 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.788e-05/0.008831, allocations: 3.984 kB / 248.8 MB, free: 9.844 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.797e-05/0.008859, allocations: 22.58 kB / 248.8 MB, free: 9.812 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.361e-05/0.008912, allocations: 30.5 kB / 248.8 MB, free: 9.773 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.008916, allocations: 3.984 kB / 248.8 MB, free: 9.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.796e-05/0.009004, allocations: 53.62 kB / 248.9 MB, free: 9.711 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.009021, allocations: 8.094 kB / 248.9 MB, free: 9.703 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.009027, allocations: 0 / 248.9 MB, free: 9.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.009042, allocations: 0 / 248.9 MB, free: 9.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.531e-05/0.009117, allocations: 8 kB / 248.9 MB, free: 9.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.009123, allocations: 3.984 kB / 248.9 MB, free: 9.691 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.166e-05/0.009154, allocations: 7.938 kB / 248.9 MB, free: 9.684 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-06/0.009159, allocations: 0 / 248.9 MB, free: 9.684 MB / 250.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 8.45e-05/0.009244, allocations: 117.8 kB / 249 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.009334, allocations: 53.67 kB / 249.1 MB, free: 9.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.241e-05/0.009376, allocations: 12.44 kB / 249.1 MB, free: 9.484 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.009379, allocations: 4 kB / 249.1 MB, free: 9.48 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.00938, allocations: 0 / 249.1 MB, free: 9.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.009387, allocations: 7.938 kB / 249.1 MB, free: 9.473 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.68e-05/0.009474, allocations: 73.88 kB / 249.2 MB, free: 9.383 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.009476, allocations: 0 / 249.2 MB, free: 9.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.181e-05/0.009558, allocations: 15.98 kB / 249.2 MB, free: 9.367 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.009594, allocations: 11.94 kB / 249.2 MB, free: 9.355 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.009598, allocations: 3.984 kB / 249.2 MB, free: 9.352 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.009608, allocations: 4 kB / 249.2 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.009611, allocations: 0 / 249.2 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.009612, allocations: 3.938 kB / 249.2 MB, free: 9.344 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.994e-05/0.009702, allocations: 70.11 kB / 249.3 MB, free: 9.254 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.009729, allocations: 15.94 kB / 249.3 MB, free: 9.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.239e-05/0.009781, allocations: 3.984 kB / 249.3 MB, free: 9.234 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/0.009807, allocations: 4 kB / 249.3 MB, free: 9.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.009815, allocations: 0 / 249.3 MB, free: 9.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.117e-05/0.009846, allocations: 24.84 kB / 249.3 MB, free: 9.203 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009846, allocations: 0 / 249.3 MB, free: 9.203 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001742/0.01002, allocations: 8 kB / 249.3 MB, free: 9.195 MB / 250.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.0001138/0.01013, allocations: 80.42 kB / 249.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.561e-05/0.01023, allocations: 40.73 kB / 249.5 MB, free: 9.066 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.01024, allocations: 4 kB / 249.5 MB, free: 9.062 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.25e-05/0.01025, allocations: 4.859 kB / 249.5 MB, free: 9.055 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.01081, allocations: 0.7151 MB / 250.2 MB, free: 8.316 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.01197, allocations: 190.6 kB / 250.4 MB, free: 8.102 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.3e-05/0.01202, allocations: 67.66 kB / 250.4 MB, free: 8.016 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.486e-05/0.01206, allocations: 3.984 kB / 250.4 MB, free: 8.012 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.119e-05/0.01213, allocations: 55.38 kB / 250.5 MB, free: 7.957 MB / 250.7 MB Notification: Performance of SimCode: time 9.91e-07/0.01213, allocations: 0 / 250.5 MB, free: 7.957 MB / 250.7 MB Notification: Performance of Templates: time 0.004045/0.01618, allocations: 0.8123 MB / 251.3 MB, free: 7.152 MB / 250.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 -ignoreHideResult -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.4363131057471037]