Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001335/0.001335, allocations: 181.3 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.767/2.767, allocations: 205.4 MB / 223.6 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009634/0.000964, allocations: 90.34 kB / 272 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1586/0.1586, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004958/0.0004958, allocations: 20 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1678, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5855/0.7534, allocations: 79.21 MB / 0.51 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003382/0.7538, allocations: 86.42 kB / 0.5101 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01824/0.7721, allocations: 5.705 MB / 0.5156 GB, free: 11.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.7721, allocations: 3.656 kB / 0.5156 GB, free: 11.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.7722, allocations: 0 / 0.5156 GB, free: 11.02 MB / 330.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.0007119/0.7729, allocations: 492 kB / 0.5161 GB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.7729, allocations: 15.62 kB / 0.5161 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.854e-05/0.773, allocations: 28.28 kB / 0.5162 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.7733, allocations: 248.6 kB / 0.5164 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.7734, allocations: 14.78 kB / 0.5164 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.7734, allocations: 15.06 kB / 0.5164 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.7745, allocations: 0.6418 MB / 0.517 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.7746, allocations: 192 / 0.517 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.7746, allocations: 7.125 kB / 0.5171 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.27e-05/0.7746, allocations: 15.56 kB / 0.5171 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004096/0.775, allocations: 188.4 kB / 0.5172 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.7756, allocations: 371.6 kB / 0.5176 GB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/0.7761, allocations: 254.9 kB / 0.5178 GB, free: 9.562 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002533/0.7763, allocations: 170.1 kB / 0.518 GB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.49e-05/0.7764, allocations: 3.844 kB / 0.518 GB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.7764, allocations: 45.48 kB / 0.5181 GB, free: 9.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 1.493e-06/0.7764, allocations: 3.875 kB / 0.5181 GB, free: 9.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007933/0.7772, allocations: 423.7 kB / 0.5185 GB, free: 9.355 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.935e-05/0.7773, allocations: 141.2 kB / 0.5186 GB, free: 9.219 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.7775, allocations: 167.8 kB / 0.5188 GB, free: 9.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.7775, allocations: 29.64 kB / 0.5188 GB, free: 9.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.7776, allocations: 98.03 kB / 0.5189 GB, free: 8.988 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/0.7776, allocations: 49.88 kB / 0.5189 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.7776, allocations: 7.375 kB / 0.5189 GB, free: 8.961 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/0.7777, allocations: 334.2 kB / 0.5193 GB, free: 8.641 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.7778, allocations: 76.89 kB / 0.5193 GB, free: 8.629 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.7781, allocations: 323.1 kB / 0.5196 GB, free: 8.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.7786, allocations: 414.3 kB / 0.52 GB, free: 7.902 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.7786, allocations: 3.75 kB / 0.52 GB, free: 7.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005641/0.7792, allocations: 410.9 kB / 0.5204 GB, free: 7.758 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.7792, allocations: 8.469 kB / 0.5204 GB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.7793, allocations: 11.62 kB / 0.5204 GB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.7793, allocations: 11.97 kB / 0.5205 GB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.7795, allocations: 86.02 kB / 0.5205 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.856e-05/0.7796, allocations: 15.94 kB / 0.5206 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.7797, allocations: 36.41 kB / 0.5206 GB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.7797, allocations: 27.3 kB / 0.5206 GB, free: 7.602 MB / 330.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.0001729/0.7799, allocations: 183.1 kB / 0.5208 GB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006446/0.7806, allocations: 291.9 kB / 0.5211 GB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.7807, allocations: 32.16 kB / 0.5211 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.7807, allocations: 11.98 kB / 0.5211 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.7807, allocations: 0 / 0.5211 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.7808, allocations: 0 / 0.5211 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003361/0.7811, allocations: 255.4 kB / 0.5213 GB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7811, allocations: 3.938 kB / 0.5214 GB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004067/0.7815, allocations: 63.91 kB / 0.5214 GB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.7816, allocations: 4 kB / 0.5214 GB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.7816, allocations: 14.67 kB / 0.5214 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.7816, allocations: 0 / 0.5214 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7816, allocations: 0 / 0.5214 GB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008442/0.7825, allocations: 450.8 kB / 0.5219 GB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.7827, allocations: 135.3 kB / 0.522 GB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.733e-05/0.7828, allocations: 19.23 kB / 0.522 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.783, allocations: 15.23 kB / 0.522 GB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/0.7831, allocations: 0 / 0.522 GB, free: 6.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.7831, allocations: 11.31 kB / 0.522 GB, free: 6.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001509/0.7833, allocations: 133.2 kB / 0.5222 GB, free: 6.176 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7833, allocations: 0 / 0.5222 GB, free: 6.176 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007184/0.784, allocations: 46.5 kB / 0.5222 GB, free: 6.141 MB / 330.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.0002008/0.7842, allocations: 119.7 kB / 0.5223 GB, free: 6.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007459/0.785, allocations: 292.7 kB / 0.5226 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.785, allocations: 0 / 0.5226 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.976e-05/0.7851, allocations: 11.98 kB / 0.5226 GB, free: 5.777 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.7862, allocations: 209.3 kB / 0.5228 GB, free: 5.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.7876, allocations: 0.6152 MB / 0.5234 GB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.7879, allocations: 0.7748 MB / 0.5242 GB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.042e-05/0.788, allocations: 30.92 kB / 0.5242 GB, free: 4.211 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.788, allocations: 0 / 0.5242 GB, free: 4.211 MB / 330.7 MB Notification: Performance of Templates: time 0.006169/0.7942, allocations: 2.91 MB / 0.527 GB, free: 1.324 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches