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.002146/0.002146, allocations: 181.2 kB / 8.41 MB, free: 0.668 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.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 1.727 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.001127/0.001127, allocations: 86.22 kB / 262.1 MB, free: 1.688 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.1285/0.1285, allocations: 12.6 MB / 322.7 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.933e-05, allocations: 4 kB / 378.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3403, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.4831, allocations: 78.01 MB / 0.4954 GB, free: 4.293 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.4834, allocations: 75.95 kB / 0.4955 GB, free: 4.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01893/0.5024, allocations: 4.109 MB / 0.4995 GB, free: 108 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5025, allocations: 0 / 0.4995 GB, free: 108 kB / 346.7 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.5025, allocations: 8 kB / 0.4995 GB, free: 100 kB / 346.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.0006102/0.5031, allocations: 390.1 kB / 0.4999 GB, free: 15.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.5032, allocations: 12.03 kB / 0.4999 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.5033, allocations: 15.81 kB / 0.4999 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.5036, allocations: 209.3 kB / 0.5001 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.5037, allocations: 7.953 kB / 0.5001 GB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.5037, allocations: 4 kB / 0.5001 GB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002007/0.5039, allocations: 51.98 kB / 0.5002 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.5045, allocations: 235 kB / 0.5004 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.5045, allocations: 0 / 0.5004 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.5045, allocations: 0 / 0.5004 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.5045, allocations: 0 / 0.5004 GB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004983/0.5051, allocations: 291 kB / 0.5007 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.5054, allocations: 123.8 kB / 0.5008 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.5055, allocations: 58.64 kB / 0.5008 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.5056, allocations: 16.06 kB / 0.5008 GB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.5056, allocations: 34.56 kB / 0.5009 GB, free: 14.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 2.294e-06/0.5056, allocations: 0 / 0.5009 GB, free: 14.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003649/0.506, allocations: 109.4 kB / 0.501 GB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5061, allocations: 118.8 kB / 0.5011 GB, free: 14.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.5063, allocations: 133.3 kB / 0.5012 GB, free: 14.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.5064, allocations: 29.64 kB / 0.5013 GB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.81e-05/0.5065, allocations: 158.6 kB / 0.5014 GB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.5065, allocations: 19.94 kB / 0.5014 GB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.5065, allocations: 0 / 0.5014 GB, free: 13.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.5067, allocations: 322.8 kB / 0.5017 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-05/0.5068, allocations: 16.38 kB / 0.5017 GB, free: 13.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.5069, allocations: 122.6 kB / 0.5019 GB, free: 13.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.507, allocations: 43.86 kB / 0.5019 GB, free: 13.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.507, allocations: 7.953 kB / 0.5019 GB, free: 13.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003279/0.5074, allocations: 137.3 kB / 0.502 GB, free: 13.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.5074, allocations: 12.47 kB / 0.5021 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.5074, allocations: 8 kB / 0.5021 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.5075, allocations: 8 kB / 0.5021 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.5077, allocations: 27.98 kB / 0.5021 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.5077, allocations: 7.938 kB / 0.5021 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.5079, allocations: 11.94 kB / 0.5021 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.5079, allocations: 12.08 kB / 0.5021 GB, free: 13.09 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.0001189/0.508, allocations: 110 kB / 0.5022 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.5083, allocations: 113.4 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.715e-05/0.5084, allocations: 24.61 kB / 0.5024 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.5084, allocations: 4 kB / 0.5024 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.5084, allocations: 0 / 0.5024 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.5084, allocations: 0 / 0.5024 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.5087, allocations: 170 kB / 0.5025 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.5087, allocations: 0 / 0.5025 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.5089, allocations: 27.92 kB / 0.5026 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.5089, allocations: 3.953 kB / 0.5026 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.509, allocations: 11.98 kB / 0.5026 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.509, allocations: 0 / 0.5026 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.509, allocations: 0 / 0.5026 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003524/0.5094, allocations: 252.4 kB / 0.5028 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.5095, allocations: 104.9 kB / 0.5029 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.5095, allocations: 0 / 0.5029 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.5097, allocations: 8 kB / 0.5029 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/0.5097, allocations: 11.98 kB / 0.5029 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.5098, allocations: 7.984 kB / 0.5029 GB, free: 12.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.5099, allocations: 103.3 kB / 0.503 GB, free: 12.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.5099, allocations: 3.938 kB / 0.503 GB, free: 12.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003992/0.5103, allocations: 16 kB / 0.5031 GB, free: 12.04 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.0001465/0.5105, allocations: 95.25 kB / 0.5031 GB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002571/0.5107, allocations: 88.11 kB / 0.5032 GB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5108, allocations: 96 / 0.5032 GB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.192e-05/0.5108, allocations: 7.938 kB / 0.5032 GB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.5113, allocations: 67.84 kB / 0.5033 GB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005207/0.5118, allocations: 192.2 kB / 0.5035 GB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.5122, allocations: 0.7327 MB / 0.5042 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.009e-05/0.5123, allocations: 19.42 kB / 0.5042 GB, free: 10.78 MB / 362.7 MB Notification: Performance of SimCode: time 9.11e-07/0.5123, allocations: 0 / 0.5042 GB, free: 10.78 MB / 362.7 MB Notification: Performance of Templates: time 0.004339/0.5166, allocations: 1.405 MB / 0.5056 GB, free: 9.371 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