Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002202/0.002202, allocations: 183.7 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2")
translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 51.92 kB / 370.9 MB, free: 9.414 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3454, allocations: 52.19 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.004584/0.35, allocations: 1.779 MB / 424.9 MB, free: 12.88 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001581/0.3516, allocations: 0.6155 MB / 425.5 MB, free: 12.25 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.3518, allocations: 15.81 kB / 425.5 MB, free: 12.24 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.352, allocations: 19.78 kB / 425.6 MB, free: 12.22 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003403/0.3524, allocations: 39.72 kB / 425.6 MB, free: 12.18 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.353, allocations: 127.4 kB / 425.7 MB, free: 12.06 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003793/0.3533, allocations: 163.6 kB / 425.9 MB, free: 11.9 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002873/0.3536, allocations: 21.73 kB / 425.9 MB, free: 11.88 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.3538, allocations: 75.75 kB / 426 MB, free: 11.8 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002671/0.3541, allocations: 111.6 kB / 426.1 MB, free: 11.69 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.3541, allocations: 16 kB / 426.1 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.583e-05/0.3542, allocations: 12 kB / 426.1 MB, free: 11.66 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.3544, allocations: 67.81 kB / 426.2 MB, free: 11.6 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3545, allocations: 87.45 kB / 426.3 MB, free: 11.51 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003953/0.3549, allocations: 216.3 kB / 426.5 MB, free: 11.3 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.3549, allocations: 4 kB / 426.5 MB, free: 11.3 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.813e-06/0.3549, allocations: 0 / 426.5 MB, free: 11.3 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.384e-06/0.3549, allocations: 0 / 426.5 MB, free: 11.3 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: 49
 * Number of variables: 49
Notification: Performance of Generate backend data structure: time 0.001018/0.3559, allocations: 449.2 kB / 426.9 MB, free: 10.83 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3559, allocations: 8.031 kB / 426.9 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/0.356, allocations: 24.8 kB / 427 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.3564, allocations: 194.1 kB / 427.1 MB, free: 10.59 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.3564, allocations: 16.38 kB / 427.2 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.3565, allocations: 20.31 kB / 427.2 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.3578, allocations: 0.6343 MB / 427.8 MB, free: 9.891 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3578, allocations: 4 kB / 427.8 MB, free: 9.887 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.3578, allocations: 4 kB / 427.8 MB, free: 9.883 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.3579, allocations: 8 kB / 427.8 MB, free: 9.875 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000434/0.3583, allocations: 191.8 kB / 428 MB, free: 9.688 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.3589, allocations: 333.4 kB / 428.3 MB, free: 9.312 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005114/0.3594, allocations: 231.6 kB / 428.6 MB, free: 9.059 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.3597, allocations: 150.6 kB / 428.7 MB, free: 8.902 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.474e-05/0.3597, allocations: 4.5 kB / 428.7 MB, free: 8.898 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3598, allocations: 42.5 kB / 428.8 MB, free: 8.848 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=39): time 1.773e-06/0.3598, allocations: 0 / 428.8 MB, free: 8.848 MB / 334.1 MB
Notification: Performance of matching and sorting (n=39): time 0.001022/0.3608, allocations: 418.2 kB / 429.2 MB, free: 8.434 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.3609, allocations: 146.8 kB / 429.3 MB, free: 8.266 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.3611, allocations: 170.5 kB / 429.5 MB, free: 8.09 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.3612, allocations: 29.7 kB / 429.5 MB, free: 8.055 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.3612, allocations: 101.1 kB / 429.6 MB, free: 7.953 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.078e-05/0.3613, allocations: 43.78 kB / 429.6 MB, free: 7.91 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.3614, allocations: 74.12 kB / 429.7 MB, free: 7.832 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002065/0.3616, allocations: 334.8 kB / 430 MB, free: 7.496 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.3618, allocations: 80.77 kB / 430.1 MB, free: 7.418 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003751/0.3622, allocations: 322.7 kB / 430.4 MB, free: 6.98 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005579/0.3627, allocations: 416.9 kB / 430.9 MB, free: 6.453 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3627, allocations: 0 / 430.9 MB, free: 6.453 MB / 334.1 MB
Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006415/0.3634, allocations: 409.7 kB / 431.3 MB, free: 6.047 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.3634, allocations: 8 kB / 431.3 MB, free: 6.039 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3634, allocations: 8 kB / 431.3 MB, free: 6.031 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.183e-05/0.3634, allocations: 16.06 kB / 431.3 MB, free: 6.016 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.3637, allocations: 87.83 kB / 431.4 MB, free: 5.93 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.3637, allocations: 15.94 kB / 431.4 MB, free: 5.914 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.3639, allocations: 31.83 kB / 431.4 MB, free: 5.883 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.3639, allocations: 27.97 kB / 431.4 MB, free: 5.855 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 39
 * Number of states: 0 ()
 * Number of discrete variables: 13 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,upSample.b)
 * Number of discrete states: 0 ()
 * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b)
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (52):
 * Single equations (assignments): 52
 * 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.0002412/0.3642, allocations: 187.1 kB / 431.6 MB, free: 5.664 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006395/0.3648, allocations: 293.4 kB / 431.9 MB, free: 5.371 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.691e-05/0.3649, allocations: 34.66 kB / 431.9 MB, free: 5.336 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3649, allocations: 7.984 kB / 432 MB, free: 5.328 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.3649, allocations: 4 kB / 432 MB, free: 5.324 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.365, allocations: 4 kB / 432 MB, free: 5.32 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.3653, allocations: 228.3 kB / 432.2 MB, free: 5.055 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3653, allocations: 3.984 kB / 432.2 MB, free: 5.051 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.3655, allocations: 59.91 kB / 432.2 MB, free: 4.992 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3655, allocations: 0 / 432.2 MB, free: 4.992 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.3656, allocations: 15.98 kB / 432.3 MB, free: 4.977 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3656, allocations: 4 kB / 432.3 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.3656, allocations: 7.938 kB / 432.3 MB, free: 4.965 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007028/0.3663, allocations: 437 kB / 432.7 MB, free: 4.52 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.3664, allocations: 51.77 kB / 432.7 MB, free: 4.469 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.3665, allocations: 19.98 kB / 432.8 MB, free: 4.449 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.3666, allocations: 8 kB / 432.8 MB, free: 4.441 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.3667, allocations: 11.98 kB / 432.8 MB, free: 4.43 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.3667, allocations: 12 kB / 432.8 MB, free: 4.418 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001282/0.3668, allocations: 135.2 kB / 432.9 MB, free: 4.285 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3668, allocations: 0 / 432.9 MB, free: 4.285 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0004067/0.3672, allocations: 48 kB / 433 MB, free: 4.238 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: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first)
 * Number of discrete states: 0 ()
 * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first)
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (39):
 * Single equations (assignments): 39
 * 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.0001661/0.3674, allocations: 111.8 kB / 433.1 MB, free: 4.117 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006291/0.368, allocations: 289.4 kB / 433.4 MB, free: 3.836 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.368, allocations: 0 / 433.4 MB, free: 3.836 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.147e-05/0.3681, allocations: 15.98 kB / 433.4 MB, free: 3.82 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007398/0.3688, allocations: 196.1 kB / 433.6 MB, free: 3.629 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3703, allocations: 0.5458 MB / 434.1 MB, free: 3.047 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.3707, allocations: 0.7727 MB / 434.9 MB, free: 2.246 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 7.617e-05/0.3708, allocations: 30.28 kB / 434.9 MB, free: 2.219 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.89e-05/0.3709, allocations: 27.42 kB / 435 MB, free: 2.191 MB / 334.1 MB
Notification: Performance of SimCode: time 1.283e-06/0.3709, allocations: 4 kB / 435 MB, free: 2.188 MB / 334.1 MB
Notification: Performance of Templates: time 0.008076/0.379, allocations: 2.963 MB / 437.9 MB, free: 15.23 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.8404077515006065]