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.001457/0.001457, allocations: 177.8 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.3 MB / 214.1 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 78.7 kB / 262.1 MB, free: 1.617 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.1054/0.1054, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.624e-05, allocations: 4 kB / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.328, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1433/0.4714, allocations: 78.48 MB / 0.4959 GB, free: 3.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.4718, allocations: 79.95 kB / 0.4959 GB, free: 3.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02535/0.4971, allocations: 5.164 MB / 0.501 GB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4972, allocations: 0 / 0.501 GB, free: 14.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.042e-05/0.4972, allocations: 4 kB / 0.501 GB, free: 14.59 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.000929/0.4982, allocations: 469.8 kB / 0.5014 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.4982, allocations: 12.03 kB / 0.5014 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.4983, allocations: 27.62 kB / 0.5015 GB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.4988, allocations: 230.7 kB / 0.5017 GB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.4989, allocations: 11.95 kB / 0.5017 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.4989, allocations: 8 kB / 0.5017 GB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005432/0.4995, allocations: 176.3 kB / 0.5019 GB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.5008, allocations: 0.5752 MB / 0.5024 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.5009, allocations: 4 kB / 0.5024 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.5009, allocations: 0 / 0.5024 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.812e-05/0.501, allocations: 12 kB / 0.5025 GB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006989/0.5017, allocations: 330.8 kB / 0.5028 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.5022, allocations: 215.7 kB / 0.503 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.5026, allocations: 130.6 kB / 0.5031 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.5026, allocations: 8 kB / 0.5031 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.5027, allocations: 34.56 kB / 0.5031 GB, free: 12.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 5.29e-06/0.5027, allocations: 0 / 0.5031 GB, free: 12.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008177/0.5035, allocations: 278.2 kB / 0.5034 GB, free: 11.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.5037, allocations: 138.8 kB / 0.5035 GB, free: 11.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.5039, allocations: 141.5 kB / 0.5037 GB, free: 11.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.504, allocations: 25.7 kB / 0.5037 GB, free: 11.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.5041, allocations: 163.3 kB / 0.5039 GB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.299e-05/0.5042, allocations: 47.53 kB / 0.5039 GB, free: 11.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.5042, allocations: 0 / 0.5039 GB, free: 11.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5044, allocations: 334.8 kB / 0.5042 GB, free: 11.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.5046, allocations: 64.86 kB / 0.5043 GB, free: 10.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.505, allocations: 293.9 kB / 0.5046 GB, free: 10.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.5053, allocations: 123.8 kB / 0.5047 GB, free: 10.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.5053, allocations: 4 kB / 0.5047 GB, free: 10.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007902/0.5061, allocations: 321.3 kB / 0.505 GB, free: 10.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.5062, allocations: 8 kB / 0.505 GB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.5062, allocations: 8 kB / 0.505 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.784e-05/0.5062, allocations: 12.72 kB / 0.505 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005311/0.5068, allocations: 87.83 kB / 0.5051 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.528e-05/0.5068, allocations: 24 kB / 0.5051 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.5071, allocations: 19.84 kB / 0.5051 GB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/0.5071, allocations: 28 kB / 0.5052 GB, free: 9.93 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 () * 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.0002032/0.5074, allocations: 132.7 kB / 0.5053 GB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006864/0.5081, allocations: 262.5 kB / 0.5055 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.5082, allocations: 31.41 kB / 0.5056 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.5082, allocations: 8 kB / 0.5056 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5082, allocations: 0 / 0.5056 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-06/0.5083, allocations: 7.984 kB / 0.5056 GB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003167/0.5086, allocations: 201.9 kB / 0.5058 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.5086, allocations: 3.953 kB / 0.5058 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.5091, allocations: 67.83 kB / 0.5059 GB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/0.5092, allocations: 4 kB / 0.5059 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.5092, allocations: 4 kB / 0.5059 GB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.5092, allocations: 0 / 0.5059 GB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5092, allocations: 0 / 0.5059 GB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008231/0.5101, allocations: 423.1 kB / 0.5063 GB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.5103, allocations: 136.7 kB / 0.5064 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.5104, allocations: 8 kB / 0.5064 GB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.5107, allocations: 7.984 kB / 0.5064 GB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.5107, allocations: 4 kB / 0.5064 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.5108, allocations: 19.98 kB / 0.5064 GB, free: 8.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.5109, allocations: 115.3 kB / 0.5065 GB, free: 8.422 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.511, allocations: 0 / 0.5065 GB, free: 8.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005839/0.5116, allocations: 36 kB / 0.5066 GB, free: 8.387 MB / 362.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 () * 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.0001734/0.5117, allocations: 104.7 kB / 0.5067 GB, free: 8.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006548/0.5124, allocations: 245.6 kB / 0.5069 GB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5124, allocations: 0 / 0.5069 GB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.393e-05/0.5125, allocations: 3.984 kB / 0.5069 GB, free: 8.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008168/0.5133, allocations: 186.9 kB / 0.5071 GB, free: 7.855 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.5149, allocations: 417.5 kB / 0.5075 GB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.5155, allocations: 0.7847 MB / 0.5083 GB, free: 6.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.5156, allocations: 27.42 kB / 0.5083 GB, free: 6.559 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.5156, allocations: 0 / 0.5083 GB, free: 6.559 MB / 362.7 MB Notification: Performance of Templates: time 0.008429/0.5241, allocations: 2.824 MB / 0.511 GB, free: 3.742 MB / 362.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