Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.001554, 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.154/2.154, 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.001072/0.001072, allocations: 82.66 kB / 267.6 MB, free: 14.1 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.09934/0.09934, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.922e-05/3.934e-05, allocations: 4 kB / 386 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3107, allocations: 50.37 MB / 436.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.4523, allocations: 78.35 MB / 0.5026 GB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.4527, allocations: 79.95 kB / 0.5027 GB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006722/0.4595, allocations: 1.552 MB / 0.5042 GB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4595, allocations: 0 / 0.5042 GB, free: 14.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.4595, allocations: 4 kB / 0.5042 GB, free: 14.04 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004783/0.46, allocations: 362.2 kB / 0.5046 GB, free: 13.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.4601, allocations: 8.031 kB / 0.5046 GB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.4601, allocations: 15.91 kB / 0.5046 GB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.4604, allocations: 202.8 kB / 0.5048 GB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.4605, allocations: 7.953 kB / 0.5048 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.4605, allocations: 0 / 0.5048 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.4609, allocations: 134.7 kB / 0.5049 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4609, allocations: 4 kB / 0.5049 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.4609, allocations: 4 kB / 0.5049 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.4609, allocations: 11.88 kB / 0.5049 GB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.928e-05/0.461, allocations: 12 kB / 0.505 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.4616, allocations: 295.4 kB / 0.5052 GB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.4618, allocations: 87.62 kB / 0.5053 GB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.982e-05/0.4619, allocations: 43.48 kB / 0.5054 GB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.4619, allocations: 8 kB / 0.5054 GB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.462, allocations: 34.5 kB / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.355e-06/0.462, allocations: 0 / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002722/0.4623, allocations: 77.44 kB / 0.5055 GB, free: 12.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.623e-05/0.4624, allocations: 140.6 kB / 0.5056 GB, free: 12.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.4626, allocations: 137.5 kB / 0.5057 GB, free: 12.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.4626, allocations: 25.7 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.4627, allocations: 158.8 kB / 0.5059 GB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.4627, allocations: 0 / 0.5059 GB, free: 12.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.904e-06/0.4628, allocations: 4 kB / 0.5059 GB, free: 12.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4629, allocations: 314.8 kB / 0.5062 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.162e-05/0.463, allocations: 8 kB / 0.5062 GB, free: 11.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-05/0.463, allocations: 41.16 kB / 0.5063 GB, free: 11.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.955e-05/0.4631, allocations: 19.95 kB / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.4631, allocations: 0 / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001754/0.4633, allocations: 69.56 kB / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.4633, allocations: 11.98 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4634, allocations: 3.984 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4634, allocations: 7.938 kB / 0.5064 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.4636, allocations: 8 kB / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.4636, allocations: 12.17 kB / 0.5064 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.247e-05/0.4637, allocations: 11.89 kB / 0.5064 GB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.4637, allocations: 4 kB / 0.5064 GB, free: 11.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 9.637e-05/0.4638, allocations: 116.7 kB / 0.5065 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.464, allocations: 61.53 kB / 0.5066 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.597e-05/0.4641, allocations: 15.66 kB / 0.5066 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.4641, allocations: 4 kB / 0.5066 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4641, allocations: 4.094 kB / 0.5066 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4641, allocations: 0 / 0.5066 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.4644, allocations: 177.6 kB / 0.5068 GB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4644, allocations: 11.83 kB / 0.5068 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.4645, allocations: 15.98 kB / 0.5068 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.4646, allocations: 0 / 0.5068 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.4646, allocations: 0 / 0.5068 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.4646, allocations: 7.938 kB / 0.5068 GB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4646, allocations: 0 / 0.5068 GB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002732/0.4649, allocations: 234.2 kB / 0.507 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.465, allocations: 93 kB / 0.5071 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.681e-05/0.4651, allocations: 4.188 kB / 0.5071 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.4652, allocations: 16 kB / 0.5071 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.4653, allocations: 0 / 0.5071 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.4653, allocations: 4 kB / 0.5071 GB, free: 10.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.4654, allocations: 115.9 kB / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4654, allocations: 0 / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003084/0.4658, allocations: 15.95 kB / 0.5073 GB, free: 10.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001358/0.4659, allocations: 91.25 kB / 0.5074 GB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.4661, allocations: 35.94 kB / 0.5074 GB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4661, allocations: 0 / 0.5074 GB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.4661, allocations: 7.938 kB / 0.5074 GB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.4666, allocations: 32.03 kB / 0.5074 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004459/0.467, allocations: 166.1 kB / 0.5076 GB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.4674, allocations: 0.7004 MB / 0.5083 GB, free: 9.379 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.948e-05/0.4675, allocations: 11.44 kB / 0.5083 GB, free: 9.367 MB / 362.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4675, allocations: 0 / 0.5083 GB, free: 9.367 MB / 362.7 MB Notification: Performance of Templates: time 0.003749/0.4712, allocations: 0.9934 MB / 0.5093 GB, free: 8.371 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches