Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 117.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.001425/0.001425, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 67.88 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3971, allocations: 50.54 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003746/0.4009, allocations: 1.623 MB / 410.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.4021, allocations: 0.5764 MB / 411.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.4023, allocations: 4 kB / 411.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.373e-05/0.4024, allocations: 11.86 kB / 411.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001615/0.4025, allocations: 11.88 kB / 411.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.4029, allocations: 71.23 kB / 411.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.4031, allocations: 59.84 kB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.4033, allocations: 20.16 kB / 411.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.4034, allocations: 35.84 kB / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.891e-05/0.4035, allocations: 23.86 kB / 411.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.4036, allocations: 4 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.4036, allocations: 12 kB / 411.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-05/0.4037, allocations: 11.94 kB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.4038, allocations: 39.73 kB / 411.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.404, allocations: 67.47 kB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.404, allocations: 0 / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.04e-06/0.404, allocations: 7.984 kB / 411.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.404, allocations: 0 / 411.8 MB, free: 15.01 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006924/0.4047, allocations: 390.9 kB / 412.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.4048, allocations: 12.03 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.405, allocations: 28.77 kB / 412.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.4054, allocations: 216.1 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.4054, allocations: 384 / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.4054, allocations: 4.375 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.4058, allocations: 151 kB / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.4058, allocations: 0 / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.4059, allocations: 0 / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.4059, allocations: 4 kB / 412.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.409e-05/0.406, allocations: 27.91 kB / 412.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005733/0.4066, allocations: 287.4 kB / 412.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.4067, allocations: 90.42 kB / 413 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.4068, allocations: 55.42 kB / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.344e-05/0.4069, allocations: 3.984 kB / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4069, allocations: 34.56 kB / 413.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.913e-06/0.4069, allocations: 0 / 413.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003293/0.4073, allocations: 101.8 kB / 413.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4074, allocations: 136.5 kB / 413.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.4076, allocations: 149.5 kB / 413.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.4076, allocations: 33.69 kB / 413.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.693e-05/0.4077, allocations: 92.12 kB / 413.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.4077, allocations: 8.172 kB / 413.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.4078, allocations: 25.7 kB / 413.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.408, allocations: 322.7 kB / 414 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.018e-05/0.408, allocations: 11.98 kB / 414 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.38e-05/0.4081, allocations: 57.14 kB / 414 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.4082, allocations: 61.08 kB / 414.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4082, allocations: 0 / 414.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001666/0.4084, allocations: 89.5 kB / 414.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.4085, allocations: 4 kB / 414.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4085, allocations: 0 / 414.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.4085, allocations: 4 kB / 414.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.4086, allocations: 19.94 kB / 414.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.4086, allocations: 3.984 kB / 414.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.695e-05/0.4087, allocations: 7.938 kB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.4087, allocations: 4 kB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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 0.0001128/0.4088, allocations: 125.9 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.4089, allocations: 73.47 kB / 414.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.385e-05/0.409, allocations: 19.81 kB / 414.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.409, allocations: 4 kB / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.409, allocations: 0 / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.409, allocations: 0 / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.4093, allocations: 185.5 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4093, allocations: 0 / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.946e-05/0.4094, allocations: 24.02 kB / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.4094, allocations: 4 kB / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.4094, allocations: 0 / 414.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.4094, allocations: 4 kB / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4094, allocations: 0 / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.4097, allocations: 198 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.166e-05/0.4098, allocations: 89.05 kB / 414.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.4099, allocations: 8 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.435e-05/0.4099, allocations: 0 / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.41, allocations: 12.11 kB / 414.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.41, allocations: 4 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.913e-05/0.4101, allocations: 122.3 kB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4101, allocations: 0 / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.4104, allocations: 8 kB / 415.1 MB, free: 11.31 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0002154/0.4106, allocations: 99.25 kB / 415.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001975/0.4108, allocations: 43.91 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4108, allocations: 0 / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.867e-05/0.4109, allocations: 4 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.4113, allocations: 52.55 kB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005056/0.4118, allocations: 213.5 kB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.4123, allocations: 0.7002 MB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.244e-05/0.4123, allocations: 12.66 kB / 416.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.837e-05/0.4124, allocations: 11.44 kB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4124, allocations: 0 / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Templates: time 0.004618/0.417, allocations: 0.8433 MB / 417 MB, free: 9.285 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches