Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.002093/0.002093, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002567/0.002567, allocations: 213.3 kB / 24.54 MB, free: 4.016 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.673/1.673, allocations: 230.3 MB / 258 MB, free: 8.258 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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample")
translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 59.89 kB / 378.7 MB, free: 2.805 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4068, allocations: 53.36 MB / 432.1 MB, free: 7.086 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004449/0.4112, allocations: 1.93 MB / 434 MB, free: 5.148 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002759/0.414, allocations: 1.246 MB / 435.3 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.4142, allocations: 3.938 kB / 435.3 MB, free: 3.891 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0007733/0.4149, allocations: 155.5 kB / 435.4 MB, free: 3.738 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004669/0.4154, allocations: 159.4 kB / 435.6 MB, free: 3.582 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.416, allocations: 171 kB / 435.8 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003038/0.4163, allocations: 199.4 kB / 436 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.4164, allocations: 21.73 kB / 436 MB, free: 3.199 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.4165, allocations: 75.69 kB / 436.1 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.4167, allocations: 87.55 kB / 436.1 MB, free: 3.039 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.4167, allocations: 11.94 kB / 436.1 MB, free: 3.027 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.4169, allocations: 55.97 kB / 436.2 MB, free: 2.973 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.417, allocations: 47.83 kB / 436.2 MB, free: 2.926 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.4171, allocations: 63.55 kB / 436.3 MB, free: 2.863 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003974/0.4175, allocations: 224.7 kB / 436.5 MB, free: 2.652 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4175, allocations: 4 kB / 436.5 MB, free: 2.648 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.314e-06/0.4175, allocations: 0 / 436.5 MB, free: 2.648 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.404e-06/0.4175, allocations: 0 / 436.5 MB, free: 2.648 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: 14
 * Number of variables: 14
Notification: Performance of Generate backend data structure: time 0.000997/0.4185, allocations: 446.7 kB / 437 MB, free: 2.176 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4185, allocations: 12.03 kB / 437 MB, free: 2.164 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.4186, allocations: 20.8 kB / 437 MB, free: 2.145 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.419, allocations: 221.1 kB / 437.2 MB, free: 1.902 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.419, allocations: 8.312 kB / 437.2 MB, free: 1.895 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.4191, allocations: 4.375 kB / 437.2 MB, free: 1.891 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.4194, allocations: 147 kB / 437.4 MB, free: 1.723 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4194, allocations: 0 / 437.4 MB, free: 1.723 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.4195, allocations: 4 kB / 437.4 MB, free: 1.719 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.4195, allocations: 4 kB / 437.4 MB, free: 1.715 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.4196, allocations: 35.92 kB / 437.4 MB, free: 1.68 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006155/0.4202, allocations: 337.4 kB / 437.7 MB, free: 1.301 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.4205, allocations: 103.9 kB / 437.8 MB, free: 1.172 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.4206, allocations: 50.5 kB / 437.9 MB, free: 1.113 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.4206, allocations: 0 / 437.9 MB, free: 1.113 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.4208, allocations: 71.39 kB / 438 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.4208, allocations: 0 / 438 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of matching and sorting (n=9): time 0.0004384/0.4213, allocations: 145.6 kB / 438.1 MB, free: 0.8828 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.4214, allocations: 132.5 kB / 438.2 MB, free: 0.7227 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.4218, allocations: 281.3 kB / 438.5 MB, free: 452 kB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.4218, allocations: 25.7 kB / 438.5 MB, free: 420 kB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.4219, allocations: 116.1 kB / 438.7 MB, free: 300 kB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.4219, allocations: 15.91 kB / 438.7 MB, free: 284 kB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.422, allocations: 33.66 kB / 438.7 MB, free: 244 kB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001693/0.4221, allocations: 330.8 kB / 439 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 6.181e-05/0.4222, allocations: 19.98 kB / 439 MB, free: 15.89 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.4223, allocations: 78 kB / 439.1 MB, free: 15.79 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.4225, allocations: 76.22 kB / 439.2 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4225, allocations: 0 / 439.2 MB, free: 15.7 MB / 350.1 MB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002521/0.4227, allocations: 121.5 kB / 439.3 MB, free: 15.57 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.4227, allocations: 6.5 kB / 439.3 MB, free: 15.57 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4227, allocations: 0 / 439.3 MB, free: 15.57 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.4228, allocations: 7.984 kB / 439.3 MB, free: 15.56 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.45e-05/0.4229, allocations: 15.88 kB / 439.3 MB, free: 15.55 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4229, allocations: 11.92 kB / 439.4 MB, free: 15.54 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.518e-05/0.4229, allocations: 7.938 kB / 439.4 MB, free: 15.53 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.4229, allocations: 8.125 kB / 439.4 MB, free: 15.52 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,shiftSample1.y,shiftSample1.u,sample1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (11):
 * Single equations (assignments): 11
 * 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.0001649/0.4231, allocations: 150.5 kB / 439.5 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.565e-05/0.4232, allocations: 69.48 kB / 439.6 MB, free: 15.29 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.4235, allocations: 99.39 kB / 439.7 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.4235, allocations: 0 / 439.7 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4235, allocations: 0 / 439.7 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4235, allocations: 7.984 kB / 439.7 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.4237, allocations: 204.6 kB / 439.9 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4237, allocations: 8 kB / 439.9 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.483e-05/0.4237, allocations: 4.125 kB / 439.9 MB, free: 14.92 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/0.4237, allocations: 4 kB / 439.9 MB, free: 14.92 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.4238, allocations: 7.984 kB / 439.9 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4238, allocations: 4 kB / 439.9 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4238, allocations: 0 / 439.9 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.424, allocations: 154.6 kB / 440.1 MB, free: 14.73 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.036e-05/0.4241, allocations: 31.84 kB / 440.1 MB, free: 14.7 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.4241, allocations: 7.984 kB / 440.1 MB, free: 14.69 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.217e-05/0.4242, allocations: 4 kB / 440.1 MB, free: 14.69 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.4243, allocations: 7.984 kB / 440.1 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.4243, allocations: 4 kB / 440.1 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002159/0.4245, allocations: 200.5 kB / 440.3 MB, free: 14.48 MB / 350.1 MB
Notification: Performance of sort global known variables: time 6.1e-08/0.4245, allocations: 0 / 440.3 MB, free: 14.48 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003767/0.4249, allocations: 31.94 kB / 440.3 MB, free: 14.45 MB / 350.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u)
 * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (9):
 * Single equations (assignments): 7
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.00163/0.4265, allocations: 421.7 kB / 440.8 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002489/0.4267, allocations: 63.86 kB / 440.8 MB, free: 14.11 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4267, allocations: 0 / 440.8 MB, free: 14.11 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 7.793e-05/0.4268, allocations: 23.98 kB / 440.8 MB, free: 14.08 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.4273, allocations: 72.17 kB / 440.9 MB, free: 14.02 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007057/0.428, allocations: 324.7 kB / 441.2 MB, free: 13.68 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005213/0.4285, allocations: 0.7242 MB / 442 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001014/0.4286, allocations: 33.44 kB / 442 MB, free: 12.89 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.4287, allocations: 23.44 kB / 442 MB, free: 12.87 MB / 350.1 MB
Notification: Performance of SimCode: time 5.51e-07/0.4287, allocations: 0 / 442 MB, free: 12.87 MB / 350.1 MB
Notification: Performance of Templates: time 0.008202/0.4369, allocations: 2.53 MB / 444.5 MB, free: 10.35 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: 5.398118480108678]