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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001629/0.001628, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001651/0.001651, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 56.09 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4042, allocations: 50.54 MB / 409.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.004173/0.4085, allocations: 1.6 MB / 410.8 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.41, allocations: 0.5415 MB / 411.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.4102, allocations: 7.938 kB / 411.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.828e-05/0.4103, allocations: 3.938 kB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001904/0.4105, allocations: 11.86 kB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.4109, allocations: 63.81 kB / 411.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.4111, allocations: 51.78 kB / 411.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.4112, allocations: 16.19 kB / 411.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.4114, allocations: 35.84 kB / 411.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.666e-05/0.4115, allocations: 19.86 kB / 411.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.4115, allocations: 4 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.996e-05/0.4115, allocations: 4 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.4116, allocations: 15.92 kB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.248e-05/0.4117, allocations: 27.81 kB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.4119, allocations: 59.73 kB / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4119, allocations: 0 / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4119, allocations: 4 kB / 411.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.4119, allocations: 0 / 411.7 MB, free: 15.16 MB / 334.1 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.0007162/0.4127, allocations: 380.3 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.4127, allocations: 12.02 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.413, allocations: 24.75 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.4133, allocations: 208.2 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.4134, allocations: 8.375 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.4134, allocations: 7.938 kB / 412.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.4138, allocations: 109.9 kB / 412.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4138, allocations: 0 / 412.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.4138, allocations: 8 kB / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.413e-06/0.4138, allocations: 3.938 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.352e-05/0.4139, allocations: 27.92 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.4144, allocations: 270.6 kB / 412.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.4147, allocations: 71.78 kB / 412.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.15e-05/0.4148, allocations: 34.62 kB / 412.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.4149, allocations: 0 / 412.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.4149, allocations: 38.55 kB / 412.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 2.996e-06/0.4149, allocations: 8 kB / 412.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003163/0.4152, allocations: 81.45 kB / 413 MB, free: 13.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.4154, allocations: 110.8 kB / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.4156, allocations: 149.7 kB / 413.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.4156, allocations: 25.7 kB / 413.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.656e-05/0.4157, allocations: 92.44 kB / 413.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.4157, allocations: 19.89 kB / 413.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.4158, allocations: 13.72 kB / 413.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.416, allocations: 318.8 kB / 413.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.554e-05/0.4161, allocations: 8 kB / 413.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.436e-05/0.4161, allocations: 35.36 kB / 413.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.4162, allocations: 47.42 kB / 413.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4162, allocations: 0 / 413.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001511/0.4164, allocations: 77.45 kB / 413.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.4164, allocations: 4.125 kB / 413.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4165, allocations: 8 kB / 413.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.4165, allocations: 0 / 413.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.4166, allocations: 8 kB / 413.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.4166, allocations: 0 / 413.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.896e-05/0.4167, allocations: 15.86 kB / 413.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.4167, allocations: 4 kB / 413.9 MB, free: 12.68 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/0.4168, allocations: 121.8 kB / 414 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.621e-05/0.4169, allocations: 57.56 kB / 414.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.07e-05/0.4169, allocations: 11.88 kB / 414.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4169, allocations: 0 / 414.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.417, allocations: 4 kB / 414.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.417, allocations: 3.938 kB / 414.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.4172, allocations: 173.6 kB / 414.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4172, allocations: 0 / 414.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.04e-05/0.4173, allocations: 11.94 kB / 414.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4173, allocations: 0 / 414.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.4173, allocations: 3.984 kB / 414.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4173, allocations: 4 kB / 414.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4173, allocations: 4.031 kB / 414.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.4176, allocations: 177.1 kB / 414.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.4176, allocations: 96.94 kB / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.4177, allocations: 4 kB / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.849e-05/0.4177, allocations: 0 / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.4178, allocations: 11.94 kB / 414.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.4178, allocations: 0 / 414.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.4179, allocations: 114.8 kB / 414.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4179, allocations: 7.875 kB / 414.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.4182, allocations: 8 kB / 414.7 MB, free: 11.77 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00017/0.4184, allocations: 99.23 kB / 414.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001942/0.4186, allocations: 35.98 kB / 414.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4186, allocations: 0 / 414.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.476e-05/0.4186, allocations: 4 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.4191, allocations: 28.02 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004991/0.4196, allocations: 192.7 kB / 415 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.4201, allocations: 0.6963 MB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.654e-05/0.4201, allocations: 0 / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.4202, allocations: 11.44 kB / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4202, allocations: 0 / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of Templates: time 0.004108/0.4243, allocations: 0.6476 MB / 416.4 MB, free: 10 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches