Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.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.00202/0.00202, allocations: 109 kB / 21.23 MB, free: 0.6719 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.002521/0.002521, allocations: 209.2 kB / 24.53 MB, free: 4.035 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.594/1.594, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample")
translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.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.002079/0.002079, allocations: 68.75 kB / 379 MB, free: 2.66 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3453, allocations: 53.36 MB / 432.4 MB, free: 6.988 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003355/0.3487, allocations: 1.625 MB / 434 MB, free: 5.359 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001228/0.3499, allocations: 0.5415 MB / 434.6 MB, free: 4.812 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.35, allocations: 4 kB / 434.6 MB, free: 4.809 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 5.514e-05/0.3501, allocations: 11.86 kB / 434.6 MB, free: 4.797 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.3502, allocations: 15.86 kB / 434.6 MB, free: 4.781 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.3506, allocations: 62.94 kB / 434.7 MB, free: 4.723 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001242/0.3507, allocations: 43.86 kB / 434.7 MB, free: 4.68 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.3508, allocations: 20.16 kB / 434.7 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.351, allocations: 27.86 kB / 434.8 MB, free: 4.633 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.3511, allocations: 23.86 kB / 434.8 MB, free: 4.609 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.3511, allocations: 4 kB / 434.8 MB, free: 4.605 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.572e-05/0.3511, allocations: 8 kB / 434.8 MB, free: 4.598 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.337e-05/0.3512, allocations: 11.94 kB / 434.8 MB, free: 4.586 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.572e-05/0.3512, allocations: 31.72 kB / 434.8 MB, free: 4.555 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.3514, allocations: 69.42 kB / 434.9 MB, free: 4.492 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3514, allocations: 0 / 434.9 MB, free: 4.492 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.352e-06/0.3514, allocations: 0 / 434.9 MB, free: 4.492 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.033e-06/0.3514, allocations: 0 / 434.9 MB, free: 4.492 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.0005747/0.352, allocations: 305.9 kB / 435.2 MB, free: 4.164 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.352, allocations: 8.031 kB / 435.2 MB, free: 4.156 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.3522, allocations: 24.81 kB / 435.2 MB, free: 4.133 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.3525, allocations: 146.9 kB / 435.4 MB, free: 3.965 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.3525, allocations: 8.375 kB / 435.4 MB, free: 3.957 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.3525, allocations: 3.938 kB / 435.4 MB, free: 3.953 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.3528, allocations: 113.9 kB / 435.5 MB, free: 3.82 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3528, allocations: 0 / 435.5 MB, free: 3.82 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.3528, allocations: 8 kB / 435.5 MB, free: 3.812 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3528, allocations: 0 / 435.5 MB, free: 3.812 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.352e-05/0.3529, allocations: 23.92 kB / 435.5 MB, free: 3.789 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003565/0.3533, allocations: 241.7 kB / 435.8 MB, free: 3.504 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.3534, allocations: 75.77 kB / 435.8 MB, free: 3.402 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 7.096e-05/0.3535, allocations: 30.62 kB / 435.9 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.3535, allocations: 0 / 435.9 MB, free: 3.363 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.3536, allocations: 46.5 kB / 435.9 MB, free: 3.309 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3536, allocations: 0 / 435.9 MB, free: 3.309 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4): time 0.0002943/0.3539, allocations: 85.52 kB / 436 MB, free: 3.219 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.502e-05/0.354, allocations: 102.8 kB / 436.1 MB, free: 3.094 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.3541, allocations: 156 kB / 436.2 MB, free: 2.934 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3541, allocations: 29.7 kB / 436.3 MB, free: 2.898 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.3542, allocations: 92.12 kB / 436.4 MB, free: 2.805 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.3542, allocations: 0 / 436.4 MB, free: 2.805 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.3543, allocations: 21.67 kB / 436.4 MB, free: 2.777 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001404/0.3544, allocations: 322.8 kB / 436.7 MB, free: 2.453 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.35e-05/0.3544, allocations: 11.94 kB / 436.7 MB, free: 2.441 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.399e-05/0.3545, allocations: 35.42 kB / 436.8 MB, free: 2.395 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.967e-05/0.3546, allocations: 47.36 kB / 436.8 MB, free: 2.336 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3546, allocations: 0 / 436.8 MB, free: 2.336 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001458/0.3547, allocations: 77.64 kB / 436.9 MB, free: 2.254 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3548, allocations: 8 kB / 436.9 MB, free: 2.246 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3548, allocations: 0 / 436.9 MB, free: 2.246 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3548, allocations: 0 / 436.9 MB, free: 2.246 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.602e-05/0.3549, allocations: 8 kB / 436.9 MB, free: 2.238 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3549, allocations: 0 / 436.9 MB, free: 2.238 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.11e-05/0.3549, allocations: 11.92 kB / 436.9 MB, free: 2.227 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.3549, allocations: 4 kB / 436.9 MB, free: 2.223 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.336e-05/0.355, allocations: 117.9 kB / 437 MB, free: 2.098 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.312e-05/0.3551, allocations: 57.59 kB / 437.1 MB, free: 2.035 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.3551, allocations: 11.97 kB / 437.1 MB, free: 2.02 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3551, allocations: 4 kB / 437.1 MB, free: 2.016 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3551, allocations: 0 / 437.1 MB, free: 2.016 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3551, allocations: 3.938 kB / 437.1 MB, free: 2.012 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.3553, allocations: 144.7 kB / 437.2 MB, free: 1.828 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3553, allocations: 3.938 kB / 437.2 MB, free: 1.824 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.683e-05/0.3554, allocations: 11.94 kB / 437.3 MB, free: 1.812 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3554, allocations: 0 / 437.3 MB, free: 1.812 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3554, allocations: 8.062 kB / 437.3 MB, free: 1.805 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3554, allocations: 3.984 kB / 437.3 MB, free: 1.801 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3554, allocations: 0 / 437.3 MB, free: 1.801 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.3556, allocations: 177.1 kB / 437.4 MB, free: 1.605 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.3556, allocations: 19.89 kB / 437.5 MB, free: 1.586 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.3556, allocations: 7.984 kB / 437.5 MB, free: 1.578 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.628e-05/0.3557, allocations: 4 kB / 437.5 MB, free: 1.574 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.3557, allocations: 7.875 kB / 437.5 MB, free: 1.566 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.3557, allocations: 4 kB / 437.5 MB, free: 1.562 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 8.186e-05/0.3558, allocations: 110.4 kB / 437.6 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.3558, allocations: 0 / 437.6 MB, free: 1.457 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002227/0.3561, allocations: 12 kB / 437.6 MB, free: 1.445 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.0001016/0.3562, allocations: 91.25 kB / 437.7 MB, free: 1.348 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001605/0.3563, allocations: 43.84 kB / 437.7 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3563, allocations: 0 / 437.7 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.413e-05/0.3563, allocations: 8 kB / 437.7 MB, free: 1.297 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.3567, allocations: 24.02 kB / 437.8 MB, free: 1.273 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003792/0.3571, allocations: 189 kB / 437.9 MB, free: 1.059 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.3574, allocations: 0.6924 MB / 438.6 MB, free: 348 kB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.63e-05/0.3574, allocations: 7.984 kB / 438.6 MB, free: 340 kB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.3575, allocations: 7.438 kB / 438.7 MB, free: 332 kB / 334.1 MB
Notification: Performance of SimCode: time 2.9e-07/0.3575, allocations: 4 kB / 438.7 MB, free: 328 kB / 334.1 MB
Notification: Performance of Templates: time 0.003485/0.361, allocations: 0.6284 MB / 439.3 MB, free: 15.7 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.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.972513564862311]