Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009814/0.0009814, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.6 MB / 234.8 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007971/0.000797, allocations: 94.7 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.863e-05/1.918e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 51.48 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3467/0.447, allocations: 77.15 MB / 472.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4473, allocations: 79.17 kB / 472.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005763/0.4531, allocations: 1.6 MB / 474 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4531, allocations: 0 / 474 MB, free: 13.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.4532, allocations: 0 / 474 MB, free: 13.33 MB / 346.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.0003297/0.4535, allocations: 361.6 kB / 474.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.4536, allocations: 12.03 kB / 474.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.4538, allocations: 20.28 kB / 474.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.454, allocations: 189.5 kB / 474.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.454, allocations: 4 kB / 474.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.454, allocations: 4.359 kB / 474.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000102/0.4542, allocations: 16.09 kB / 474.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.4544, allocations: 105 kB / 474.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.4544, allocations: 3.984 kB / 474.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.4544, allocations: 4 kB / 474.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.4545, allocations: 0.7031 kB / 474.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003607/0.4548, allocations: 265.6 kB / 475 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.678e-05/0.4549, allocations: 59.75 kB / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.342e-05/0.455, allocations: 26.55 kB / 475 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.455, allocations: 4.797 kB / 475.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.455, allocations: 39.06 kB / 475.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.4551, allocations: 0 / 475.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002153/0.4553, allocations: 56.38 kB / 475.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.4553, allocations: 107.5 kB / 475.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.4555, allocations: 130.2 kB / 475.4 MB, free: 11.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.4555, allocations: 29.64 kB / 475.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.4555, allocations: 89.19 kB / 475.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.4556, allocations: 9.25 kB / 475.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.4556, allocations: 0 / 475.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.4556, allocations: 316.3 kB / 475.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.235e-05/0.4557, allocations: 11.69 kB / 475.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.761e-05/0.4557, allocations: 28.19 kB / 475.9 MB, free: 11.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.037e-05/0.4557, allocations: 8.516 kB / 475.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4558, allocations: 0 / 475.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001163/0.4559, allocations: 55.89 kB / 475.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.4559, allocations: 8.562 kB / 475.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4559, allocations: 4.125 kB / 475.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.4559, allocations: 4.641 kB / 475.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.884e-05/0.4561, allocations: 9.547 kB / 475.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4561, allocations: 4.562 kB / 475.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.4561, allocations: 1.219 kB / 475.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.4562, allocations: 4 kB / 475.9 MB, free: 11.28 MB / 346.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 4.756e-05/0.4562, allocations: 105.5 kB / 476.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.951e-05/0.4563, allocations: 50.88 kB / 476.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.306e-05/0.4564, allocations: 16.95 kB / 476.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4564, allocations: 4.609 kB / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4564, allocations: 0 / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4564, allocations: 0.6094 kB / 476.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.4566, allocations: 154.1 kB / 476.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.4566, allocations: 0 / 476.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.221e-05/0.4567, allocations: 14.58 kB / 476.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4567, allocations: 0 / 476.3 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.4567, allocations: 4.703 kB / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.4567, allocations: 0 / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4568, allocations: 4.609 kB / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.4569, allocations: 192.7 kB / 476.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.457, allocations: 89.14 kB / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.457, allocations: 4.516 kB / 476.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.4571, allocations: 7.688 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.4572, allocations: 0.75 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.4572, allocations: 4.797 kB / 476.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.398e-05/0.4573, allocations: 114.2 kB / 476.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4573, allocations: 0 / 476.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.4577, allocations: 4 kB / 476.7 MB, free: 10.49 MB / 346.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.0001184/0.4578, allocations: 96.42 kB / 476.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.887e-05/0.4579, allocations: 25.69 kB / 476.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.458, allocations: 4 kB / 476.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.13e-05/0.458, allocations: 4.891 kB / 476.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.4583, allocations: 23.25 kB / 476.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002804/0.4586, allocations: 108.8 kB / 477 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.4588, allocations: 0.6996 MB / 477.7 MB, free: 9.516 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.528e-05/0.4588, allocations: 5.484 kB / 477.7 MB, free: 9.508 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.4589, allocations: 12 kB / 477.7 MB, free: 9.496 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4589, allocations: 0 / 477.7 MB, free: 9.496 MB / 346.7 MB Notification: Performance of Templates: time 0.003132/0.462, allocations: 0.5292 MB / 478.2 MB, free: 9.219 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time