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-master/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-master/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.001559/0.001558, allocations: 186 kB / 16.44 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.0011/0.0011, allocations: 96.5 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1004/0.1004, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005355/0.0005361, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08888/0.08944, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.416/0.5055, allocations: 79.22 MB / 0.5093 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.5058, allocations: 74.48 kB / 0.5094 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02207/0.5279, allocations: 5.234 MB / 0.5145 GB, free: 10.87 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5279, allocations: 0 / 0.5145 GB, free: 10.87 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.528, allocations: 3.875 kB / 0.5145 GB, free: 10.87 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.000772/0.5288, allocations: 478.8 kB / 0.515 GB, free: 10.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.5288, allocations: 11.56 kB / 0.515 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.5289, allocations: 23.28 kB / 0.515 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.5292, allocations: 255.2 kB / 0.5153 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.5293, allocations: 18.89 kB / 0.5153 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.5293, allocations: 15.28 kB / 0.5153 GB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.5307, allocations: 0.6283 MB / 0.5159 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.5308, allocations: 0 / 0.5159 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.5308, allocations: 3.25 kB / 0.5159 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.5309, allocations: 14.44 kB / 0.5159 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005864/0.5315, allocations: 191.2 kB / 0.5161 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005475/0.532, allocations: 379.5 kB / 0.5165 GB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.5326, allocations: 245.3 kB / 0.5167 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.5327, allocations: 11.55 kB / 0.5167 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.5327, allocations: 42.62 kB / 0.5168 GB, free: 9.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 2.415e-06/0.5327, allocations: 0 / 0.5168 GB, free: 9.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001236/0.534, allocations: 424.9 kB / 0.5172 GB, free: 9.281 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.741e-05/0.5341, allocations: 132.1 kB / 0.5173 GB, free: 9.152 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.5343, allocations: 155.5 kB / 0.5174 GB, free: 9.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.5343, allocations: 32.7 kB / 0.5175 GB, free: 9.016 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.5344, allocations: 163.2 kB / 0.5176 GB, free: 8.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.5344, allocations: 49.62 kB / 0.5177 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.5345, allocations: 10.97 kB / 0.5177 GB, free: 8.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.5345, allocations: 329.4 kB / 0.518 GB, free: 8.516 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.5347, allocations: 73.61 kB / 0.5181 GB, free: 8.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.535, allocations: 322.8 kB / 0.5184 GB, free: 8.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.5353, allocations: 135.3 kB / 0.5185 GB, free: 8.125 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.5354, allocations: 3.844 kB / 0.5185 GB, free: 8.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007616/0.5361, allocations: 397.8 kB / 0.5189 GB, free: 7.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.5362, allocations: 7.844 kB / 0.5189 GB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.5362, allocations: 11.53 kB / 0.5189 GB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.5362, allocations: 15.47 kB / 0.5189 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.5367, allocations: 85.33 kB / 0.519 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.5367, allocations: 19.84 kB / 0.519 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.5369, allocations: 38.62 kB / 0.5191 GB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/0.537, allocations: 27.94 kB / 0.5191 GB, free: 7.926 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.0002276/0.5372, allocations: 187.2 kB / 0.5193 GB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007667/0.538, allocations: 296.7 kB / 0.5195 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.811e-05/0.5381, allocations: 34.22 kB / 0.5196 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.5381, allocations: 4 kB / 0.5196 GB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.5381, allocations: 0 / 0.5196 GB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.5382, allocations: 3.984 kB / 0.5196 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.5385, allocations: 246 kB / 0.5198 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5385, allocations: 4 kB / 0.5198 GB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.539, allocations: 67.08 kB / 0.5199 GB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.539, allocations: 0 / 0.5199 GB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.539, allocations: 7.438 kB / 0.5199 GB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.014e-06/0.539, allocations: 7.984 kB / 0.5199 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.539, allocations: 0 / 0.5199 GB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000883/0.5399, allocations: 470.2 kB / 0.5204 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.5401, allocations: 126.1 kB / 0.5205 GB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.5402, allocations: 14.86 kB / 0.5205 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.5404, allocations: 18.98 kB / 0.5205 GB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.5405, allocations: 4 kB / 0.5205 GB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.5405, allocations: 8 kB / 0.5205 GB, free: 6.594 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001144/0.5406, allocations: 139 kB / 0.5206 GB, free: 6.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5406, allocations: 0 / 0.5206 GB, free: 6.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005091/0.5411, allocations: 58.92 kB / 0.5207 GB, free: 6.426 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.0001371/0.5413, allocations: 112.2 kB / 0.5208 GB, free: 6.312 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007053/0.542, allocations: 294.8 kB / 0.5211 GB, free: 6.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.542, allocations: 0 / 0.5211 GB, free: 6.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.634e-05/0.5421, allocations: 16.42 kB / 0.5211 GB, free: 6.066 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007901/0.5429, allocations: 205.5 kB / 0.5213 GB, free: 5.914 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.5445, allocations: 0.6125 MB / 0.5219 GB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.5448, allocations: 0.7914 MB / 0.5227 GB, free: 4.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.5449, allocations: 27.25 kB / 0.5227 GB, free: 4.496 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5449, allocations: 0 / 0.5227 GB, free: 4.496 MB / 330.7 MB Notification: Performance of Templates: time 0.006084/0.551, allocations: 2.85 MB / 0.5255 GB, free: 1.672 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