Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002346/0.002347, 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.123/2.123, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001088/0.001088, allocations: 78.72 kB / 267.5 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.09646/0.09646, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.696e-05/3.726e-05, allocations: 0 / 386 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2993, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4399, allocations: 78.26 MB / 0.5025 GB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.4403, allocations: 79.95 kB / 0.5026 GB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006133/0.4464, allocations: 1.45 MB / 0.504 GB, free: 14.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4465, allocations: 0 / 0.504 GB, free: 14.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4465, allocations: 0 / 0.504 GB, free: 14.26 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004479/0.447, allocations: 346.4 kB / 0.5044 GB, free: 13.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.447, allocations: 8.031 kB / 0.5044 GB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.4471, allocations: 7.906 kB / 0.5044 GB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.4474, allocations: 206.7 kB / 0.5046 GB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.4474, allocations: 0 / 0.5046 GB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.4474, allocations: 7.938 kB / 0.5046 GB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.4478, allocations: 117.8 kB / 0.5047 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.4478, allocations: 0 / 0.5047 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.4478, allocations: 4 kB / 0.5047 GB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.4478, allocations: 0 / 0.5047 GB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.317e-05/0.4479, allocations: 15.94 kB / 0.5047 GB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004665/0.4484, allocations: 274.6 kB / 0.505 GB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.4485, allocations: 72.97 kB / 0.505 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.4486, allocations: 30.64 kB / 0.5051 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.4486, allocations: 0 / 0.5051 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.4487, allocations: 38.48 kB / 0.5051 GB, free: 12.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.813e-06/0.4487, allocations: 4 kB / 0.5051 GB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002311/0.4489, allocations: 61.56 kB / 0.5052 GB, free: 12.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.449, allocations: 110.8 kB / 0.5053 GB, free: 12.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.4492, allocations: 128.8 kB / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.4493, allocations: 29.7 kB / 0.5054 GB, free: 12.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.4493, allocations: 150.6 kB / 0.5056 GB, free: 12.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.4494, allocations: 4 kB / 0.5056 GB, free: 12.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.4494, allocations: 3.938 kB / 0.5056 GB, free: 12.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4495, allocations: 322.9 kB / 0.5059 GB, free: 12.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.4496, allocations: 4 kB / 0.5059 GB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.67e-05/0.4496, allocations: 27.44 kB / 0.5059 GB, free: 12.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.299e-05/0.4497, allocations: 15.92 kB / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4497, allocations: 0 / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001372/0.4498, allocations: 61.53 kB / 0.506 GB, free: 11.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4499, allocations: 8 kB / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4499, allocations: 0 / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.4499, allocations: 0 / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.4501, allocations: 12 kB / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.4501, allocations: 0 / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.229e-05/0.4502, allocations: 7.984 kB / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.4502, allocations: 128 / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 8.812e-05/0.4503, allocations: 128.6 kB / 0.5061 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.4504, allocations: 45.61 kB / 0.5062 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.4505, allocations: 11.64 kB / 0.5062 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4505, allocations: 0 / 0.5062 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4505, allocations: 4 kB / 0.5062 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.4505, allocations: 0 / 0.5062 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.4508, allocations: 173.6 kB / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4508, allocations: 3.938 kB / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.992e-05/0.4509, allocations: 16.05 kB / 0.5064 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4509, allocations: 0 / 0.5064 GB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.4509, allocations: 7.938 kB / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.4509, allocations: 4 kB / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4509, allocations: 0 / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.4512, allocations: 192.5 kB / 0.5066 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.997e-05/0.4513, allocations: 93 kB / 0.5067 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.4513, allocations: 7.938 kB / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.4514, allocations: 0 / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.4515, allocations: 4 kB / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.4515, allocations: 3.953 kB / 0.5067 GB, free: 11.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001101/0.4516, allocations: 112 kB / 0.5068 GB, free: 11.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4516, allocations: 0 / 0.5068 GB, free: 11.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002877/0.4519, allocations: 8 kB / 0.5068 GB, free: 11.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001287/0.4521, allocations: 107.2 kB / 0.5069 GB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001206/0.4522, allocations: 19.94 kB / 0.5069 GB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4522, allocations: 0 / 0.5069 GB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.971e-05/0.4522, allocations: 8 kB / 0.5069 GB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.4526, allocations: 20.02 kB / 0.5069 GB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.453, allocations: 148 kB / 0.5071 GB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.4534, allocations: 0.7043 MB / 0.5078 GB, free: 9.965 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.4534, allocations: 11.44 kB / 0.5078 GB, free: 9.957 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4534, allocations: 0 / 0.5078 GB, free: 9.957 MB / 362.7 MB Notification: Performance of Templates: time 0.002904/0.4563, allocations: 0.8051 MB / 0.5086 GB, free: 9.152 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches