Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009685/0.0009685, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 245.3 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008336/0.0008339, allocations: 106.7 kB / 297.4 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.000228, allocations: 11.98 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2341, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08912/0.3233, allocations: 79.07 MB / 487.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3235, allocations: 83.95 kB / 487.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01564/0.3392, allocations: 5.721 MB / 493.5 MB, free: 6.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3392, allocations: 0 / 493.5 MB, free: 6.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.3393, allocations: 4 kB / 493.5 MB, free: 6.699 MB / 362.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.0005851/0.3398, allocations: 490.7 kB / 494 MB, free: 6.168 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3399, allocations: 8.031 kB / 494 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.34, allocations: 40.55 kB / 494.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.3403, allocations: 251.9 kB / 494.3 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.3404, allocations: 12.38 kB / 494.3 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.3404, allocations: 20.38 kB / 494.3 MB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009619/0.3414, allocations: 0.6226 MB / 495 MB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3414, allocations: 4.188 kB / 495 MB, free: 5.156 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.3414, allocations: 7.938 kB / 495 MB, free: 5.148 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.3415, allocations: 15.98 kB / 495 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003633/0.3418, allocations: 187.8 kB / 495.2 MB, free: 4.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.3423, allocations: 366.4 kB / 495.5 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.3427, allocations: 247.5 kB / 495.8 MB, free: 4.266 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.3429, allocations: 167.1 kB / 495.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.343, allocations: 16.12 kB / 496 MB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.343, allocations: 38.56 kB / 496 MB, free: 4.031 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.343, allocations: 0 / 496 MB, free: 4.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007938/0.3438, allocations: 430.5 kB / 496.4 MB, free: 3.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.253e-05/0.3439, allocations: 138.7 kB / 496.5 MB, free: 3.445 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.3441, allocations: 172 kB / 496.7 MB, free: 3.266 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.3441, allocations: 33.7 kB / 496.7 MB, free: 3.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.3442, allocations: 101.1 kB / 496.8 MB, free: 3.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.3442, allocations: 43.58 kB / 496.9 MB, free: 3.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.3442, allocations: 8 kB / 496.9 MB, free: 3.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3443, allocations: 334.9 kB / 497.2 MB, free: 2.738 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.3445, allocations: 80.81 kB / 497.3 MB, free: 2.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.3447, allocations: 318.7 kB / 497.6 MB, free: 2.223 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.3451, allocations: 417 kB / 498 MB, free: 1.695 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.3451, allocations: 4 kB / 498 MB, free: 1.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00055/0.3457, allocations: 413.1 kB / 498.4 MB, free: 1.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3457, allocations: 8 kB / 498.4 MB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3458, allocations: 8 kB / 498.4 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3458, allocations: 15.94 kB / 498.5 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.346, allocations: 87.83 kB / 498.5 MB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.69e-05/0.346, allocations: 15.94 kB / 498.6 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.3462, allocations: 36.12 kB / 498.6 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3462, allocations: 28 kB / 498.6 MB, free: 1.086 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (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.ticks,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.3464, allocations: 182.4 kB / 498.8 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004769/0.3469, allocations: 293.2 kB / 499.1 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.24e-05/0.347, allocations: 30.66 kB / 499.1 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.347, allocations: 8 kB / 499.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.347, allocations: 0 / 499.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.347, allocations: 7.984 kB / 499.1 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.3472, allocations: 249.3 kB / 499.4 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3472, allocations: 0 / 499.4 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002539/0.3475, allocations: 63.89 kB / 499.4 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3475, allocations: 4 kB / 499.4 MB, free: 204 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.3475, allocations: 8 kB / 499.5 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3475, allocations: 3.984 kB / 499.5 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3475, allocations: 0 / 499.5 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005952/0.3481, allocations: 444.1 kB / 499.9 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3483, allocations: 132.7 kB / 0.4883 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.936e-05/0.3483, allocations: 19.98 kB / 0.4883 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3485, allocations: 15.98 kB / 0.4883 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.3485, allocations: 3.938 kB / 0.4883 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.3485, allocations: 12 kB / 0.4883 GB, free: 15.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.961e-05/0.3486, allocations: 139.2 kB / 0.4885 GB, free: 15.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.403e-06/0.3486, allocations: 0 / 0.4885 GB, free: 15.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000356/0.349, allocations: 51.94 kB / 0.4885 GB, free: 15.35 MB / 378.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 (superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b_super,FIR2.first,FIR1.first,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001521/0.3492, allocations: 115.2 kB / 0.4886 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004846/0.3496, allocations: 292.1 kB / 0.4889 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3497, allocations: 1.75 kB / 0.4889 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.87e-05/0.3497, allocations: 11.98 kB / 0.4889 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.3503, allocations: 222.1 kB / 0.4891 GB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3514, allocations: 0.6121 MB / 0.4897 GB, free: 14.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003509/0.3518, allocations: 0.7725 MB / 0.4905 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.3519, allocations: 35.42 kB / 0.4905 GB, free: 13.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3519, allocations: 0 / 0.4905 GB, free: 13.23 MB / 378.7 MB Notification: Performance of Templates: time 0.004363/0.3562, allocations: 2.908 MB / 0.4934 GB, free: 10.35 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches