Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.000968/0.000968, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 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.0009121/0.0009121, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9709/0.9709, allocations: 173.4 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.659e-05, allocations: 2.312 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002051/0.002067, allocations: 1.794 MB / 269.8 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008457/0.002913, allocations: 0.6074 MB / 270.4 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.94e-05/0.003012, allocations: 11.88 kB / 270.4 MB, free: 4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.003176, allocations: 23.73 kB / 270.4 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.00337, allocations: 35.78 kB / 270.5 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.003668, allocations: 127.6 kB / 270.6 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.003823, allocations: 143.6 kB / 270.7 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.003927, allocations: 21.73 kB / 270.8 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.004048, allocations: 91.77 kB / 270.9 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.004225, allocations: 95.75 kB / 270.9 MB, free: 3.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.004254, allocations: 16 kB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.021e-05/0.004274, allocations: 12 kB / 271 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.004344, allocations: 67.81 kB / 271 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.495e-05/0.004399, allocations: 55.81 kB / 271.1 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.004575, allocations: 159.4 kB / 271.2 MB, free: 3.164 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004578, allocations: 3.984 kB / 271.3 MB, free: 3.16 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.21e-07/0.004578, allocations: 0 / 271.3 MB, free: 3.16 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.004582, allocations: 0 / 271.3 MB, free: 3.16 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005909/0.005173, allocations: 0.5347 MB / 271.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.00521, allocations: 8.031 kB / 271.8 MB, free: 2.582 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.572e-05/0.005276, allocations: 36.8 kB / 271.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.005498, allocations: 200.2 kB / 272 MB, free: 2.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.005527, allocations: 12.38 kB / 272 MB, free: 2.312 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/0.005553, allocations: 20.38 kB / 272.1 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.006156, allocations: 485.7 kB / 272.5 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.00617, allocations: 192 / 272.5 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.006187, allocations: 12.31 kB / 272.5 MB, free: 1.777 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.338e-05/0.00622, allocations: 11.94 kB / 272.6 MB, free: 1.766 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.006363, allocations: 91.91 kB / 272.6 MB, free: 1.676 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003187/0.006681, allocations: 335 kB / 273 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.006903, allocations: 181 kB / 273.2 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.007018, allocations: 103.1 kB / 273.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.007049, allocations: 4 kB / 273.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.007077, allocations: 45.33 kB / 273.3 MB, free: 0.918 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.393e-06/0.007078, allocations: 0 / 273.3 MB, free: 0.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.000403/0.007481, allocations: 277.8 kB / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.007556, allocations: 135.7 kB / 273.7 MB, free: 496 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.00794, allocations: 225.9 kB / 273.9 MB, free: 252 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.007958, allocations: 33.7 kB / 274 MB, free: 212 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.008008, allocations: 143.9 kB / 274.1 MB, free: 64 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.008044, allocations: 48 kB / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.828e-05/0.008103, allocations: 47.59 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.008227, allocations: 0.4962 MB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/0.008263, allocations: 24.45 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.669e-05/0.008349, allocations: 152.5 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.008473, allocations: 187.4 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.008475, allocations: 0 / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0001819/0.008657, allocations: 189.3 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.008671, allocations: 7.938 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.008678, allocations: 4 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.008696, allocations: 4 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.913e-05/0.008796, allocations: 35.92 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.008804, allocations: 7.984 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.008849, allocations: 15.89 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.008861, allocations: 12.41 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.77e-05/0.008959, allocations: 184.5 kB / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002359/0.009194, allocations: 226.4 kB / 275.7 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.00924, allocations: 34.64 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.009244, allocations: 4 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.009248, allocations: 3.938 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.009253, allocations: 3.984 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.009378, allocations: 164.5 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.009379, allocations: 0 / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.009516, allocations: 63.91 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.686e-06/0.00952, allocations: 4 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.009535, allocations: 11.94 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.009537, allocations: 3.984 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.009539, allocations: 4 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.009834, allocations: 402.9 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.009901, allocations: 51.77 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.00994, allocations: 23.92 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.851e-05/0.01001, allocations: 11.98 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.01004, allocations: 0 / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.01005, allocations: 12 kB / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.967e-05/0.01012, allocations: 163.4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01012, allocations: 0 / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.01033, allocations: 43.94 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 9.328e-05/0.01043, allocations: 115.2 kB / 276.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.01064, allocations: 144.5 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.01064, allocations: 256 / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.496e-05/0.01066, allocations: 15.69 kB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.01106, allocations: 152.2 kB / 277.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008837/0.01195, allocations: 490.6 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.719e-05/0.01203, allocations: 116.8 kB / 277.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.391e-05/0.01206, allocations: 14.02 kB / 277.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.01211, allocations: 20.5 kB / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of SimCode: time 8.81e-07/0.01212, allocations: 0 / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Templates: time 0.004195/0.01631, allocations: 2.593 MB / 280.3 MB, free: 9.543 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.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.8608067808672786]