Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001423/0.001423, allocations: 172.5 kB / 16.8 MB, free: 5.008 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.364/1.364, allocations: 205.4 MB / 223 MB, free: 9.027 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.0007917/0.0007918, allocations: 92.95 kB / 271.3 MB, free: 8.246 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.0981/0.0981, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004242/0.0004242, allocations: 12 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09117, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3713/0.4625, allocations: 78.34 MB / 0.5097 GB, free: 13.35 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.4628, allocations: 78.28 kB / 0.5098 GB, free: 13.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00373/0.4666, allocations: 1.449 MB / 0.5112 GB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.4666, allocations: 0 / 0.5112 GB, free: 12.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.4666, allocations: 0 / 0.5112 GB, free: 12.7 MB / 330.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.0004184/0.467, allocations: 372.1 kB / 0.5116 GB, free: 12.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.4671, allocations: 7.688 kB / 0.5116 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.063e-05/0.4671, allocations: 8.688 kB / 0.5116 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.4673, allocations: 199.1 kB / 0.5118 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.4674, allocations: 7.719 kB / 0.5118 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.4674, allocations: 4.281 kB / 0.5118 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.4677, allocations: 102.2 kB / 0.5119 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.4677, allocations: 4.188 kB / 0.5119 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.4677, allocations: 11.72 kB / 0.5119 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.4677, allocations: 0 / 0.5119 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.301e-05/0.4678, allocations: 23.27 kB / 0.5119 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003116/0.4681, allocations: 267.9 kB / 0.5122 GB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.683e-05/0.4682, allocations: 52.17 kB / 0.5122 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.386e-05/0.4683, allocations: 17.44 kB / 0.5122 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.4683, allocations: 0 / 0.5122 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.4683, allocations: 42.16 kB / 0.5123 GB, free: 11.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4683, allocations: 0 / 0.5123 GB, free: 11.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002333/0.4686, allocations: 71.61 kB / 0.5123 GB, free: 11.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.4686, allocations: 77.11 kB / 0.5124 GB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.4687, allocations: 146.2 kB / 0.5126 GB, free: 11.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.4688, allocations: 29.7 kB / 0.5126 GB, free: 11.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/0.4688, allocations: 94.39 kB / 0.5127 GB, free: 11.22 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.4688, allocations: 3.906 kB / 0.5127 GB, free: 11.22 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.4688, allocations: 0 / 0.5127 GB, free: 11.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.4689, allocations: 322.2 kB / 0.513 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.469, allocations: 7.625 kB / 0.513 GB, free: 10.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.469, allocations: 33.17 kB / 0.513 GB, free: 10.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.4691, allocations: 32.52 kB / 0.5131 GB, free: 10.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4691, allocations: 0 / 0.5131 GB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.909e-05/0.4692, allocations: 64.88 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.4693, allocations: 7.75 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.4693, allocations: 7.922 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.4693, allocations: 0 / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.429e-05/0.4694, allocations: 7.859 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.4694, allocations: 3.844 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.101e-05/0.4694, allocations: 0 / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.4694, allocations: 3.844 kB / 0.5131 GB, free: 10.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 7.657e-05/0.4695, allocations: 130 kB / 0.5133 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.142e-05/0.4696, allocations: 37.3 kB / 0.5133 GB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.4696, allocations: 10.81 kB / 0.5133 GB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4696, allocations: 3.969 kB / 0.5133 GB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4696, allocations: 0 / 0.5133 GB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4696, allocations: 3.984 kB / 0.5133 GB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.4698, allocations: 172.8 kB / 0.5135 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4698, allocations: 3.938 kB / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.011e-05/0.4699, allocations: 3.844 kB / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4699, allocations: 8.016 kB / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.4699, allocations: 3.844 kB / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4699, allocations: 0 / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4699, allocations: 0 / 0.5135 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001592/0.4701, allocations: 166.5 kB / 0.5137 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.4701, allocations: 96.56 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.4702, allocations: 0 / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.884e-05/0.4702, allocations: 3.844 kB / 0.5138 GB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.4703, allocations: 3.938 kB / 0.5138 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-06/0.4703, allocations: 3.906 kB / 0.5138 GB, free: 10.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.765e-05/0.4704, allocations: 106.6 kB / 0.5139 GB, free: 10.06 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4704, allocations: 0 / 0.5139 GB, free: 10.06 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002048/0.4706, allocations: 3.812 kB / 0.5139 GB, free: 10.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001033/0.4707, allocations: 94.75 kB / 0.514 GB, free: 9.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.4708, allocations: 26.33 kB / 0.514 GB, free: 9.969 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4709, allocations: 0 / 0.514 GB, free: 9.969 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.847e-05/0.4709, allocations: 19.45 kB / 0.514 GB, free: 9.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.4713, allocations: 24.41 kB / 0.514 GB, free: 9.949 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004037/0.4717, allocations: 183 kB / 0.5142 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.4719, allocations: 0.6894 MB / 0.5149 GB, free: 9.078 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.537e-05/0.472, allocations: 4 kB / 0.5149 GB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.311e-05/0.472, allocations: 11.34 kB / 0.5149 GB, free: 9.07 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.472, allocations: 0 / 0.5149 GB, free: 9.07 MB / 330.7 MB Notification: Performance of Templates: time 0.002567/0.4746, allocations: 0.5181 MB / 0.5154 GB, free: 8.812 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time