Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.001045/0.001045, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.002361/0.002361, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 0.9431/0.9431, allocations: 177.1 MB / 205 MB, free: 5.629 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.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.355e-06/2.355e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.876e-05/3.112e-05, allocations: 6.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.00623/0.006261, allocations: 1.805 MB / 274.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004239/0.0105, allocations: 0.6659 MB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.01061, allocations: 11.88 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.01079, allocations: 19.8 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.01101, allocations: 39.66 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004263/0.01143, allocations: 143.5 kB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.01161, allocations: 143.6 kB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.01173, allocations: 21.8 kB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.01192, allocations: 107.6 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.0121, allocations: 91.75 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.01213, allocations: 12 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.01219, allocations: 20 kB / 276.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.412e-05/0.01228, allocations: 63.8 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.94e-05/0.01235, allocations: 55.83 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.01262, allocations: 163.4 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.01263, allocations: 4 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01263, allocations: 0 / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.01264, allocations: 8 kB / 276.3 MB, free: 14.16 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.003737/0.01637, allocations: 0.5269 MB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.01642, allocations: 8.031 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.01661, allocations: 48.73 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.01687, allocations: 208.1 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.0169, allocations: 12.38 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.01693, allocations: 16.38 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007166/0.01764, allocations: 490 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.01766, allocations: 4.172 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.01767, allocations: 12.38 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.302e-05/0.01771, allocations: 11.94 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.01789, allocations: 95.84 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.01826, allocations: 338.9 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.01856, allocations: 177 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.01871, allocations: 103.6 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.01874, allocations: 12 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.01877, allocations: 45.33 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.974e-06/0.01877, allocations: 0 / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.003572/0.02234, allocations: 285.5 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.02243, allocations: 134.7 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.02257, allocations: 221.9 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.02259, allocations: 29.7 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.02265, allocations: 151.9 kB / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.765e-05/0.02269, allocations: 35.73 kB / 279.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.02275, allocations: 55.55 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.02287, allocations: 0.5001 MB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/0.02291, allocations: 16.45 kB / 279.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.02302, allocations: 152.5 kB / 280 MB, free: 10.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.02318, allocations: 195.5 kB / 280.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.02318, allocations: 0 / 280.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002318/0.02341, allocations: 181.2 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.02343, allocations: 12.38 kB / 280.4 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.02343, allocations: 8 kB / 280.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.02345, allocations: 4 kB / 280.4 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.02358, allocations: 35.92 kB / 280.4 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.02359, allocations: 11.94 kB / 280.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.02365, allocations: 7.953 kB / 280.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.02367, allocations: 12 kB / 280.4 MB, free: 9.668 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 0.0001166/0.02378, allocations: 188.4 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003084/0.02409, allocations: 214.4 kB / 280.8 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.707e-05/0.02415, allocations: 38.59 kB / 280.9 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.02415, allocations: 12 kB / 280.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.02416, allocations: 0 / 280.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.02417, allocations: 3.984 kB / 280.9 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.02435, allocations: 156.5 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.02435, allocations: 4 kB / 281 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.02458, allocations: 59.91 kB / 281.1 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.02458, allocations: 4 kB / 281.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.02461, allocations: 15.92 kB / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.706e-06/0.02461, allocations: 0 / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.02461, allocations: 0 / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.02808, allocations: 411.1 kB / 281.5 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.91e-05/0.02816, allocations: 55.75 kB / 281.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.02821, allocations: 19.92 kB / 281.6 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.02833, allocations: 15.98 kB / 281.6 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.02836, allocations: 0 / 281.6 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.02847, allocations: 19.98 kB / 281.6 MB, free: 8.391 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.731e-05/0.02855, allocations: 160.2 kB / 281.8 MB, free: 8.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02855, allocations: 0 / 281.8 MB, free: 8.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003091/0.02886, allocations: 44 kB / 281.8 MB, free: 8.191 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 0.0001202/0.02898, allocations: 119.6 kB / 281.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002599/0.02924, allocations: 151.4 kB / 282.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.02924, allocations: 4 kB / 282.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.425e-05/0.02926, allocations: 7.688 kB / 282.1 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005178/0.02977, allocations: 154.2 kB / 282.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.03247, allocations: 494.9 kB / 282.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.876e-05/0.03256, allocations: 112.8 kB / 282.8 MB, free: 7.098 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.544e-05/0.0326, allocations: 13.95 kB / 282.9 MB, free: 7.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.598e-05/0.03267, allocations: 32.42 kB / 282.9 MB, free: 7.055 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.03267, allocations: 0 / 282.9 MB, free: 7.055 MB / 266.7 MB Notification: Performance of Templates: time 0.005515/0.03818, allocations: 2.646 MB / 285.5 MB, free: 4.434 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.867745717987418]