Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002311/0.002311, allocations: 186.1 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.005/2.005, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001102/0.001102, allocations: 94.62 kB / 267.6 MB, free: 14.11 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.1021/0.1021, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.846e-05/3.858e-05, allocations: 7.984 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3101, allocations: 50.36 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.4454, allocations: 78.68 MB / 0.5029 GB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4457, allocations: 79.95 kB / 0.503 GB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01911/0.4649, allocations: 4.147 MB / 0.5071 GB, free: 11.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4649, allocations: 0 / 0.5071 GB, free: 11.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.465, allocations: 8 kB / 0.5071 GB, free: 11.14 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005307/0.4655, allocations: 390.2 kB / 0.5075 GB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.4656, allocations: 8.031 kB / 0.5075 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.4656, allocations: 15.81 kB / 0.5075 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.4659, allocations: 206.9 kB / 0.5077 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.466, allocations: 11.95 kB / 0.5077 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.466, allocations: 12 kB / 0.5077 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.4666, allocations: 257.3 kB / 0.5079 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.4667, allocations: 0 / 0.5079 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.4667, allocations: 4 kB / 0.5079 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.4667, allocations: 4 kB / 0.5079 GB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.4669, allocations: 39.94 kB / 0.508 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.4674, allocations: 314.4 kB / 0.5083 GB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.4678, allocations: 131.9 kB / 0.5084 GB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.468, allocations: 74.72 kB / 0.5085 GB, free: 9.504 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.468, allocations: 4.094 kB / 0.5085 GB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.4681, allocations: 38.55 kB / 0.5085 GB, free: 9.453 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 3.026e-06/0.4681, allocations: 0 / 0.5085 GB, free: 9.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004352/0.4685, allocations: 133.3 kB / 0.5086 GB, free: 9.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.4686, allocations: 114.8 kB / 0.5088 GB, free: 9.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.4689, allocations: 133.4 kB / 0.5089 GB, free: 9.039 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.4689, allocations: 33.7 kB / 0.5089 GB, free: 9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.469, allocations: 154.6 kB / 0.5091 GB, free: 8.848 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.4691, allocations: 19.8 kB / 0.5091 GB, free: 8.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.4691, allocations: 4 kB / 0.5091 GB, free: 8.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4692, allocations: 322.8 kB / 0.5094 GB, free: 8.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.298e-05/0.4693, allocations: 20.38 kB / 0.5094 GB, free: 8.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.4695, allocations: 131.2 kB / 0.5095 GB, free: 8.297 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.4697, allocations: 43.92 kB / 0.5096 GB, free: 8.254 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4697, allocations: 0 / 0.5096 GB, free: 8.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003966/0.4701, allocations: 173.4 kB / 0.5097 GB, free: 8.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4701, allocations: 4 kB / 0.5098 GB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.4701, allocations: 4 kB / 0.5098 GB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.4702, allocations: 8 kB / 0.5098 GB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002268/0.4704, allocations: 31.92 kB / 0.5098 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.4704, allocations: 4 kB / 0.5098 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.4706, allocations: 15.94 kB / 0.5098 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.4706, allocations: 8.281 kB / 0.5098 GB, free: 8.004 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001294/0.4708, allocations: 136.6 kB / 0.51 GB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.4711, allocations: 113.4 kB / 0.5101 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.166e-05/0.4712, allocations: 28.59 kB / 0.5101 GB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.4712, allocations: 0 / 0.5101 GB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.4712, allocations: 4 kB / 0.5101 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4712, allocations: 0 / 0.5101 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.4715, allocations: 201.4 kB / 0.5103 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4715, allocations: 0 / 0.5103 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.4718, allocations: 39.92 kB / 0.5103 GB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.4718, allocations: 4 kB / 0.5103 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.4718, allocations: 192 / 0.5103 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.4718, allocations: 4 kB / 0.5103 GB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4718, allocations: 3.938 kB / 0.5103 GB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.4723, allocations: 268.5 kB / 0.5106 GB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.4724, allocations: 108.9 kB / 0.5107 GB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.4724, allocations: 0 / 0.5107 GB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.4726, allocations: 8 kB / 0.5107 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.862e-05/0.4726, allocations: 4 kB / 0.5107 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.4727, allocations: 4 kB / 0.5107 GB, free: 6.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001303/0.4728, allocations: 119.9 kB / 0.5108 GB, free: 6.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4728, allocations: 0 / 0.5108 GB, free: 6.863 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003694/0.4732, allocations: 20 kB / 0.5108 GB, free: 6.844 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001517/0.4734, allocations: 111.2 kB / 0.5109 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.4737, allocations: 87.81 kB / 0.511 GB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4737, allocations: 0 / 0.511 GB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.317e-05/0.4737, allocations: 16.98 kB / 0.511 GB, free: 6.625 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.4742, allocations: 71.84 kB / 0.5111 GB, free: 6.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.4748, allocations: 210.4 kB / 0.5113 GB, free: 6.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.4752, allocations: 0.7205 MB / 0.512 GB, free: 5.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.4752, allocations: 15.44 kB / 0.512 GB, free: 5.555 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4753, allocations: 0 / 0.512 GB, free: 5.555 MB / 362.7 MB Notification: Performance of Templates: time 0.00429/0.4796, allocations: 1.426 MB / 0.5134 GB, free: 4.125 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches