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.001489/0.001489, allocations: 181 kB / 13.7 MB, free: 1.625 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.031/2.031, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001065/0.001065, allocations: 82.7 kB / 267.6 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09983/0.09983, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.805e-05, allocations: 4 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3051, allocations: 50.38 MB / 436.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4458, allocations: 79.14 MB / 0.5034 GB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.4462, allocations: 79.95 kB / 0.5035 GB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02557/0.4718, allocations: 5.206 MB / 0.5086 GB, free: 9.605 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.897e-06/0.4718, allocations: 0 / 0.5086 GB, free: 9.605 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.4719, allocations: 7.938 kB / 0.5086 GB, free: 9.598 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.0008944/0.4728, allocations: 461.9 kB / 0.509 GB, free: 9.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.4728, allocations: 12.03 kB / 0.509 GB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.771e-05/0.4729, allocations: 27.62 kB / 0.5091 GB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.4734, allocations: 230.7 kB / 0.5093 GB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.298e-05/0.4735, allocations: 19.95 kB / 0.5093 GB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/0.4735, allocations: 23.98 kB / 0.5093 GB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.475, allocations: 0.5948 MB / 0.5099 GB, free: 8.141 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4751, allocations: 11.94 kB / 0.5099 GB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.4751, allocations: 8 kB / 0.5099 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.557e-05/0.4752, allocations: 8 kB / 0.5099 GB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004947/0.4757, allocations: 167.9 kB / 0.5101 GB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007815/0.4765, allocations: 378.2 kB / 0.5104 GB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005927/0.4771, allocations: 227.6 kB / 0.5107 GB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003687/0.4775, allocations: 146.7 kB / 0.5108 GB, free: 7.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-05/0.4776, allocations: 16.11 kB / 0.5108 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.4776, allocations: 46.5 kB / 0.5109 GB, free: 7.051 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 3.176e-06/0.4776, allocations: 0 / 0.5109 GB, free: 7.051 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0008365/0.4785, allocations: 294.2 kB / 0.5111 GB, free: 6.758 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.4786, allocations: 142.6 kB / 0.5113 GB, free: 6.594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.4789, allocations: 150.5 kB / 0.5114 GB, free: 6.441 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.4789, allocations: 29.7 kB / 0.5115 GB, free: 6.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.479, allocations: 163.3 kB / 0.5116 GB, free: 6.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.769e-05/0.4791, allocations: 47.52 kB / 0.5117 GB, free: 6.199 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.4791, allocations: 16.03 kB / 0.5117 GB, free: 6.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4793, allocations: 330.8 kB / 0.512 GB, free: 5.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.4795, allocations: 64.86 kB / 0.512 GB, free: 5.789 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.4798, allocations: 310.8 kB / 0.5123 GB, free: 5.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.4802, allocations: 127.8 kB / 0.5125 GB, free: 5.234 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4802, allocations: 4 kB / 0.5125 GB, free: 5.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009138/0.4811, allocations: 385.2 kB / 0.5128 GB, free: 4.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.4812, allocations: 8 kB / 0.5128 GB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.4812, allocations: 11.98 kB / 0.5129 GB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.332e-05/0.4812, allocations: 12 kB / 0.5129 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/0.4817, allocations: 79.84 kB / 0.5129 GB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.592e-05/0.4818, allocations: 16.5 kB / 0.513 GB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.4821, allocations: 39.83 kB / 0.513 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/0.4821, allocations: 24 kB / 0.513 GB, free: 4.66 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.0001908/0.4823, allocations: 144.7 kB / 0.5132 GB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007191/0.4831, allocations: 281.5 kB / 0.5134 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.4832, allocations: 38.77 kB / 0.5135 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.557e-06/0.4832, allocations: 4 kB / 0.5135 GB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4832, allocations: 0 / 0.5135 GB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.4832, allocations: 4 kB / 0.5135 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.4836, allocations: 253.2 kB / 0.5137 GB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.4836, allocations: 4 kB / 0.5137 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.4842, allocations: 63.91 kB / 0.5138 GB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.4842, allocations: 0 / 0.5138 GB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.4842, allocations: 11.98 kB / 0.5138 GB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.4842, allocations: 4 kB / 0.5138 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4843, allocations: 0 / 0.5138 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008552/0.4851, allocations: 443.1 kB / 0.5142 GB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.4853, allocations: 132.7 kB / 0.5143 GB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.244e-05/0.4854, allocations: 19.98 kB / 0.5144 GB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.4857, allocations: 19.98 kB / 0.5144 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.4857, allocations: 0 / 0.5144 GB, free: 3.156 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/0.4858, allocations: 8 kB / 0.5144 GB, free: 3.148 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001581/0.486, allocations: 139.2 kB / 0.5145 GB, free: 3.012 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.486, allocations: 4 kB / 0.5145 GB, free: 3.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005432/0.4865, allocations: 44 kB / 0.5146 GB, free: 2.965 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.000166/0.4867, allocations: 107.2 kB / 0.5147 GB, free: 2.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007048/0.4874, allocations: 270 kB / 0.5149 GB, free: 2.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4874, allocations: 3.938 kB / 0.5149 GB, free: 2.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.939e-05/0.4875, allocations: 7.938 kB / 0.5149 GB, free: 2.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/0.4883, allocations: 188.2 kB / 0.5151 GB, free: 2.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.4899, allocations: 435.3 kB / 0.5155 GB, free: 1.934 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.4904, allocations: 0.792 MB / 0.5163 GB, free: 1.113 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4905, allocations: 27.38 kB / 0.5163 GB, free: 1.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.4905, allocations: 0 / 0.5163 GB, free: 1.09 MB / 362.7 MB Notification: Performance of Templates: time 0.2869/0.7774, allocations: 2.849 MB / 0.5191 GB, free: 86.81 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