Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001708/0.001708, allocations: 181 kB / 15.8 MB, free: 6.336 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0009037/0.0009037, allocations: 98.8 kB / 270.3 MB, free: 13.34 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.07562/0.07562, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 12.91 kB / 392 MB, free: 54.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1041, allocations: 50.38 MB / 442.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.2119, allocations: 78.33 MB / 0.5085 GB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.2122, allocations: 75.95 kB / 0.5086 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00416/0.2164, allocations: 1.448 MB / 0.51 GB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2164, allocations: 0 / 0.51 GB, free: 10.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.2164, allocations: 0 / 0.51 GB, free: 10.96 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.0004212/0.2169, allocations: 378.9 kB / 0.5104 GB, free: 10.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.2169, allocations: 8.031 kB / 0.5104 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.217, allocations: 11.84 kB / 0.5104 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.2172, allocations: 210.7 kB / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.2172, allocations: 0 / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.2172, allocations: 4 kB / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.2175, allocations: 109.9 kB / 0.5107 GB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2175, allocations: 8 kB / 0.5107 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2175, allocations: 0 / 0.5107 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2176, allocations: 0 / 0.5107 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.921e-05/0.2177, allocations: 27.92 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003975/0.2181, allocations: 282.6 kB / 0.511 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.2182, allocations: 67.8 kB / 0.511 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2182, allocations: 3.984 kB / 0.5111 GB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.2182, allocations: 38.62 kB / 0.5111 GB, free: 9.629 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.2183, allocations: 0 / 0.5111 GB, free: 9.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002789/0.2185, allocations: 89.45 kB / 0.5112 GB, free: 9.535 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.2186, allocations: 111.2 kB / 0.5113 GB, free: 9.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.2187, allocations: 128.8 kB / 0.5114 GB, free: 9.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.2188, allocations: 29.64 kB / 0.5114 GB, free: 9.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.056e-05/0.2188, allocations: 100 kB / 0.5115 GB, free: 9.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.2188, allocations: 0 / 0.5115 GB, free: 9.133 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/0.2189, allocations: 0 / 0.5115 GB, free: 9.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.219, allocations: 318.8 kB / 0.5118 GB, free: 8.812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.112e-05/0.2191, allocations: 11.98 kB / 0.5118 GB, free: 8.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.184e-05/0.2191, allocations: 43.42 kB / 0.5119 GB, free: 8.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.642e-05/0.2192, allocations: 13.38 kB / 0.5119 GB, free: 8.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2192, allocations: 0 / 0.5119 GB, free: 8.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001363/0.2193, allocations: 81.52 kB / 0.512 GB, free: 8.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2193, allocations: 4 kB / 0.512 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.2194, allocations: 0 / 0.512 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2194, allocations: 4 kB / 0.512 GB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.147e-05/0.2195, allocations: 11.98 kB / 0.512 GB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2195, allocations: 0 / 0.512 GB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.111e-05/0.2195, allocations: 4.125 kB / 0.512 GB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.2195, allocations: 8 kB / 0.512 GB, free: 8.617 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 () * Number of clocked 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 9.694e-05/0.2196, allocations: 125.5 kB / 0.5121 GB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.2197, allocations: 49.59 kB / 0.5122 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.396e-05/0.2198, allocations: 11.88 kB / 0.5122 GB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2198, allocations: 4 kB / 0.5122 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2198, allocations: 3.984 kB / 0.5122 GB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.2198, allocations: 96 / 0.5122 GB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.22, allocations: 181.5 kB / 0.5124 GB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.22, allocations: 8.047 kB / 0.5124 GB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.255e-05/0.2201, allocations: 19.86 kB / 0.5124 GB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2201, allocations: 0 / 0.5124 GB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.2201, allocations: 4 kB / 0.5124 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2201, allocations: 0 / 0.5124 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2201, allocations: 0 / 0.5124 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.2203, allocations: 204.5 kB / 0.5126 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.2204, allocations: 97 kB / 0.5127 GB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2204, allocations: 0 / 0.5127 GB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.728e-05/0.2205, allocations: 7.938 kB / 0.5127 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.2205, allocations: 3.984 kB / 0.5127 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.2206, allocations: 8 kB / 0.5127 GB, free: 7.785 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.168e-05/0.2206, allocations: 115.2 kB / 0.5128 GB, free: 7.672 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2206, allocations: 0 / 0.5128 GB, free: 7.672 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.2209, allocations: 4 kB / 0.5128 GB, free: 7.668 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 () * Number of clocked 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 9.941e-05/0.221, allocations: 99.23 kB / 0.5129 GB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.2211, allocations: 36.11 kB / 0.5129 GB, free: 7.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.2211, allocations: 0 / 0.5129 GB, free: 7.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.892e-05/0.2212, allocations: 12 kB / 0.513 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.2214, allocations: 27.77 kB / 0.513 GB, free: 7.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003461/0.2218, allocations: 202.8 kB / 0.5132 GB, free: 7.258 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.2221, allocations: 0.6938 MB / 0.5139 GB, free: 6.539 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.2221, allocations: 4.172 kB / 0.5139 GB, free: 6.531 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.2221, allocations: 15.44 kB / 0.5139 GB, free: 6.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2221, allocations: 0 / 0.5139 GB, free: 6.52 MB / 362.7 MB Notification: Performance of Templates: time 0.002578/0.2247, allocations: 0.5624 MB / 0.5144 GB, free: 5.961 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time