Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.001472/0.001472, allocations: 105.1 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.001906/0.001906, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 8.074 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample")
translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 64.77 kB / 379 MB, free: 2.691 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3611, allocations: 53.37 MB / 432.4 MB, free: 7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003352/0.3645, allocations: 1.587 MB / 434 MB, free: 5.41 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001094/0.3656, allocations: 0.5414 MB / 434.5 MB, free: 4.863 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 8.949e-05/0.3657, allocations: 4 kB / 434.5 MB, free: 4.859 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 4.549e-05/0.3657, allocations: 3.938 kB / 434.5 MB, free: 4.855 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.3659, allocations: 15.86 kB / 434.5 MB, free: 4.84 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.3662, allocations: 59.83 kB / 434.6 MB, free: 4.781 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001341/0.3663, allocations: 51.78 kB / 434.7 MB, free: 4.73 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3664, allocations: 12.17 kB / 434.7 MB, free: 4.719 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.3665, allocations: 27.92 kB / 434.7 MB, free: 4.691 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.3666, allocations: 23.8 kB / 434.7 MB, free: 4.668 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.3666, allocations: 4 kB / 434.7 MB, free: 4.664 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.3667, allocations: 15.98 kB / 434.7 MB, free: 4.648 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.371e-05/0.3667, allocations: 15.92 kB / 434.8 MB, free: 4.633 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.769e-05/0.3668, allocations: 23.81 kB / 434.8 MB, free: 4.609 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3669, allocations: 63.33 kB / 434.8 MB, free: 4.551 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3669, allocations: 4 kB / 434.8 MB, free: 4.547 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.452e-06/0.3669, allocations: 0 / 434.8 MB, free: 4.547 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.372e-06/0.3669, allocations: 0 / 434.8 MB, free: 4.547 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.00055/0.3675, allocations: 307.9 kB / 435.1 MB, free: 4.219 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3675, allocations: 8.031 kB / 435.1 MB, free: 4.211 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.3677, allocations: 16.89 kB / 435.2 MB, free: 4.195 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.368, allocations: 138.4 kB / 435.3 MB, free: 4.035 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.368, allocations: 8.375 kB / 435.3 MB, free: 4.027 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.368, allocations: 8.312 kB / 435.3 MB, free: 4.02 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.3683, allocations: 109.1 kB / 435.4 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3683, allocations: 0 / 435.4 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3683, allocations: 4 kB / 435.4 MB, free: 3.891 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3683, allocations: 4 kB / 435.4 MB, free: 3.887 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 7.627e-05/0.3684, allocations: 19.92 kB / 435.4 MB, free: 3.867 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003659/0.3687, allocations: 236.8 kB / 435.7 MB, free: 3.59 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 9.795e-05/0.3688, allocations: 45.16 kB / 435.7 MB, free: 3.527 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.739e-05/0.3689, allocations: 21.77 kB / 435.7 MB, free: 3.5 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.3689, allocations: 4 kB / 435.8 MB, free: 3.496 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.3689, allocations: 30.56 kB / 435.8 MB, free: 3.457 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3689, allocations: 0 / 435.8 MB, free: 3.457 MB / 334.1 MB
Notification: Performance of matching and sorting (n=2): time 0.0002528/0.3692, allocations: 73.56 kB / 435.9 MB, free: 3.379 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3693, allocations: 81.36 kB / 435.9 MB, free: 3.281 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.3694, allocations: 137.8 kB / 436.1 MB, free: 3.137 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.3694, allocations: 29.64 kB / 436.1 MB, free: 3.102 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.3695, allocations: 92.14 kB / 436.2 MB, free: 3.008 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.3695, allocations: 3.953 kB / 436.2 MB, free: 3.004 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.82e-05/0.3695, allocations: 17.7 kB / 436.2 MB, free: 2.98 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001617/0.3697, allocations: 318.8 kB / 436.5 MB, free: 2.66 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.313e-05/0.3697, allocations: 12 kB / 436.5 MB, free: 2.648 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.929e-05/0.3698, allocations: 17.7 kB / 436.5 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 7.966e-05/0.3699, allocations: 29.7 kB / 436.6 MB, free: 2.59 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3699, allocations: 0 / 436.6 MB, free: 2.59 MB / 334.1 MB
Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001197/0.37, allocations: 61.64 kB / 436.6 MB, free: 2.523 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.37, allocations: 4 kB / 436.6 MB, free: 2.52 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.37, allocations: 4 kB / 436.6 MB, free: 2.516 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.37, allocations: 0 / 436.6 MB, free: 2.516 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.041e-05/0.3701, allocations: 11.92 kB / 436.7 MB, free: 2.504 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3701, allocations: 0 / 436.7 MB, free: 2.504 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.798e-05/0.3701, allocations: 4 kB / 436.7 MB, free: 2.5 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.3701, allocations: 0 / 436.7 MB, free: 2.5 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 0.0001001/0.3702, allocations: 121.8 kB / 436.8 MB, free: 2.371 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-05/0.3703, allocations: 49.66 kB / 436.8 MB, free: 2.316 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.3703, allocations: 11.77 kB / 436.8 MB, free: 2.305 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3703, allocations: 3.984 kB / 436.8 MB, free: 2.301 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3703, allocations: 3.938 kB / 436.8 MB, free: 2.297 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3703, allocations: 0 / 436.8 MB, free: 2.297 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.3705, allocations: 144.7 kB / 437 MB, free: 2.113 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3705, allocations: 0 / 437 MB, free: 2.113 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.311e-05/0.3706, allocations: 8 kB / 437 MB, free: 2.105 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3706, allocations: 0 / 437 MB, free: 2.105 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.3706, allocations: 4 kB / 437 MB, free: 2.102 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3706, allocations: 4.031 kB / 437 MB, free: 2.098 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.3706, allocations: 0 / 437 MB, free: 2.098 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.3708, allocations: 168.2 kB / 437.2 MB, free: 1.914 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.3708, allocations: 15.94 kB / 437.2 MB, free: 1.898 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.3708, allocations: 3.984 kB / 437.2 MB, free: 1.895 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.979e-05/0.3709, allocations: 8.031 kB / 437.2 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.3709, allocations: 0 / 437.2 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.3709, allocations: 0 / 437.2 MB, free: 1.887 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 9.393e-05/0.371, allocations: 113.5 kB / 437.3 MB, free: 1.777 MB / 334.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.371, allocations: 0 / 437.3 MB, free: 1.777 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002155/0.3712, allocations: 4 kB / 437.3 MB, free: 1.773 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 9.589e-05/0.3713, allocations: 95.25 kB / 437.4 MB, free: 1.672 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001449/0.3715, allocations: 27.98 kB / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3715, allocations: 0 / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.522e-05/0.3715, allocations: 7.984 kB / 437.4 MB, free: 1.637 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.3718, allocations: 19.95 kB / 437.5 MB, free: 1.617 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003483/0.3722, allocations: 163.7 kB / 437.6 MB, free: 1.426 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.3726, allocations: 0.6926 MB / 438.3 MB, free: 0.707 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 2.967e-05/0.3726, allocations: 7.938 kB / 438.3 MB, free: 0.6992 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.148e-05/0.3726, allocations: 11.44 kB / 438.3 MB, free: 0.6875 MB / 334.1 MB
Notification: Performance of SimCode: time 2.6e-07/0.3726, allocations: 0 / 438.3 MB, free: 0.6875 MB / 334.1 MB
Notification: Performance of Templates: time 0.003312/0.3759, allocations: 0.5423 MB / 438.9 MB, free: 164 kB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.609926385805011]