Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002137/0.002137, allocations: 109 kB / 21.23 MB, free: 0.5117 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 209.9 kB / 24.54 MB, free: 3.906 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 230.3 MB / 258 MB, free: 8.441 MB / 206.1 MB
"
[Timeout remaining time 178]
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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample")
translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 63.89 kB / 378.7 MB, free: 2.859 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4003, allocations: 53.36 MB / 432.1 MB, free: 7.129 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003478/0.4038, allocations: 1.578 MB / 433.7 MB, free: 5.547 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001314/0.4051, allocations: 0.5725 MB / 434.3 MB, free: 4.969 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.4052, allocations: 4 kB / 434.3 MB, free: 4.965 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 5.122e-05/0.4053, allocations: 3.938 kB / 434.3 MB, free: 4.961 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.4054, allocations: 15.86 kB / 434.3 MB, free: 4.945 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.4058, allocations: 59.81 kB / 434.3 MB, free: 4.887 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001301/0.4059, allocations: 47.84 kB / 434.4 MB, free: 4.84 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.406, allocations: 12.17 kB / 434.4 MB, free: 4.828 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.4062, allocations: 31.8 kB / 434.4 MB, free: 4.797 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 7.757e-05/0.4063, allocations: 23.92 kB / 434.5 MB, free: 4.773 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.4063, allocations: 4 kB / 434.5 MB, free: 4.77 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.953e-05/0.4063, allocations: 11.94 kB / 434.5 MB, free: 4.758 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.827e-05/0.4064, allocations: 11.98 kB / 434.5 MB, free: 4.746 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.215e-05/0.4065, allocations: 39.67 kB / 434.5 MB, free: 4.707 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.4066, allocations: 53.44 kB / 434.6 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4066, allocations: 0 / 434.6 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.503e-06/0.4066, allocations: 0 / 434.6 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.292e-06/0.4066, allocations: 3.938 kB / 434.6 MB, free: 4.656 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.0006105/0.4073, allocations: 313.9 kB / 434.9 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.4073, allocations: 8.031 kB / 434.9 MB, free: 4.312 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.4075, allocations: 24.88 kB / 434.9 MB, free: 4.289 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.4078, allocations: 142.5 kB / 435.1 MB, free: 4.129 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.4078, allocations: 4.375 kB / 435.1 MB, free: 4.125 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.4078, allocations: 7.938 kB / 435.1 MB, free: 4.117 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.4081, allocations: 105 kB / 435.2 MB, free: 3.996 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4082, allocations: 0 / 435.2 MB, free: 3.996 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.4082, allocations: 0 / 435.2 MB, free: 3.996 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.4082, allocations: 4 kB / 435.2 MB, free: 3.992 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.183e-05/0.4083, allocations: 19.92 kB / 435.2 MB, free: 3.973 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.4086, allocations: 236.8 kB / 435.4 MB, free: 3.695 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.4087, allocations: 49.14 kB / 435.5 MB, free: 3.629 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 5.17e-05/0.4088, allocations: 13.78 kB / 435.5 MB, free: 3.609 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.4088, allocations: 0 / 435.5 MB, free: 3.609 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.4088, allocations: 42.56 kB / 435.5 MB, free: 3.559 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.4088, allocations: 3.938 kB / 435.5 MB, free: 3.555 MB / 334.1 MB
Notification: Performance of matching and sorting (n=2): time 0.0002529/0.4091, allocations: 65.56 kB / 435.6 MB, free: 3.484 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.4092, allocations: 81.11 kB / 435.7 MB, free: 3.387 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.4093, allocations: 153.7 kB / 435.8 MB, free: 3.227 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.4094, allocations: 25.7 kB / 435.8 MB, free: 3.195 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.4094, allocations: 92.38 kB / 435.9 MB, free: 3.102 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.4094, allocations: 7.953 kB / 435.9 MB, free: 3.094 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.4095, allocations: 13.72 kB / 436 MB, free: 3.074 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001557/0.4096, allocations: 314.8 kB / 436.3 MB, free: 2.758 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-05/0.4097, allocations: 15.92 kB / 436.3 MB, free: 2.742 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.194e-05/0.4097, allocations: 13.72 kB / 436.3 MB, free: 2.723 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.194e-05/0.4098, allocations: 33.77 kB / 436.3 MB, free: 2.684 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4098, allocations: 0 / 436.3 MB, free: 2.684 MB / 334.1 MB
Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001306/0.4099, allocations: 61.56 kB / 436.4 MB, free: 2.617 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.41, allocations: 8 kB / 436.4 MB, free: 2.609 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.41, allocations: 0 / 436.4 MB, free: 2.609 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.41, allocations: 0 / 436.4 MB, free: 2.609 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.316e-05/0.41, allocations: 4.062 kB / 436.4 MB, free: 2.605 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.4101, allocations: 4 kB / 436.4 MB, free: 2.602 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.94e-05/0.4101, allocations: 11.92 kB / 436.4 MB, free: 2.59 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.4101, allocations: 3.984 kB / 436.4 MB, free: 2.586 MB / 334.1 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 (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.4102, allocations: 117.8 kB / 436.5 MB, free: 2.461 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.4103, allocations: 41.59 kB / 436.6 MB, free: 2.414 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.4103, allocations: 15.8 kB / 436.6 MB, free: 2.398 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.4103, allocations: 0 / 436.6 MB, free: 2.398 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.4103, allocations: 4 kB / 436.6 MB, free: 2.395 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4103, allocations: 7.969 kB / 436.6 MB, free: 2.387 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.4105, allocations: 136.7 kB / 436.7 MB, free: 2.211 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.4105, allocations: 0 / 436.7 MB, free: 2.211 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.904e-05/0.4106, allocations: 19.97 kB / 436.8 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4106, allocations: 0 / 436.8 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.4106, allocations: 0 / 436.8 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4106, allocations: 0 / 436.8 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4106, allocations: 0 / 436.8 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002028/0.4108, allocations: 168.2 kB / 436.9 MB, free: 2.008 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.4108, allocations: 15.92 kB / 436.9 MB, free: 1.992 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.4108, allocations: 7.938 kB / 436.9 MB, free: 1.984 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.42e-05/0.4109, allocations: 0 / 436.9 MB, free: 1.984 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.4109, allocations: 11.92 kB / 437 MB, free: 1.973 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.4109, allocations: 0 / 437 MB, free: 1.973 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001013/0.411, allocations: 114.6 kB / 437.1 MB, free: 1.863 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.411, allocations: 8.031 kB / 437.1 MB, free: 1.855 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002168/0.4113, allocations: 4 kB / 437.1 MB, free: 1.852 MB / 334.1 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 (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.0001152/0.4114, allocations: 91.25 kB / 437.2 MB, free: 1.754 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001523/0.4115, allocations: 23.98 kB / 437.2 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4115, allocations: 0 / 437.2 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.231e-05/0.4116, allocations: 7.938 kB / 437.2 MB, free: 1.723 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4119, allocations: 20.3 kB / 437.2 MB, free: 1.703 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004035/0.4123, allocations: 171.6 kB / 437.4 MB, free: 1.504 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004982/0.4128, allocations: 0.6885 MB / 438.1 MB, free: 0.7891 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.605e-05/0.4129, allocations: 0 / 438.1 MB, free: 0.7891 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.4129, allocations: 15.42 kB / 438.1 MB, free: 0.7734 MB / 334.1 MB
Notification: Performance of SimCode: time 2.91e-07/0.4129, allocations: 0 / 438.1 MB, free: 0.7734 MB / 334.1 MB
Notification: Performance of Templates: time 0.003574/0.4165, allocations: 0.5964 MB / 438.7 MB, free: 192 kB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.916083523072302]