Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002047/0.002047, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 214.3 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.623/1.623, allocations: 230.6 MB / 257.5 MB, free: 8.035 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 47.92 kB / 378.3 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3757, allocations: 53.37 MB / 431.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004064/0.3797, allocations: 2.004 MB / 433.6 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.3825, allocations: 1.371 MB / 435 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.3826, allocations: 7.938 kB / 435 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004067/0.3831, allocations: 71.59 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.3836, allocations: 147.4 kB / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009667/0.3846, allocations: 273.7 kB / 435.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.3849, allocations: 219.4 kB / 435.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.3851, allocations: 32.58 kB / 435.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.3853, allocations: 107.5 kB / 435.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.3855, allocations: 111.6 kB / 435.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.3855, allocations: 16 kB / 436 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.3857, allocations: 83.83 kB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.3858, allocations: 67.75 kB / 436.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.3859, allocations: 103.3 kB / 436.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004895/0.3864, allocations: 301 kB / 436.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3864, allocations: 0 / 436.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3864, allocations: 0 / 436.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3864, allocations: 0 / 436.5 MB, free: 2.066 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001046/0.3875, allocations: 0.5217 MB / 437 MB, free: 1.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3875, allocations: 8.031 kB / 437 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.38e-05/0.3876, allocations: 36.75 kB / 437.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.3881, allocations: 262.4 kB / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.3881, allocations: 12.38 kB / 437.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.3881, allocations: 16.12 kB / 437.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.3888, allocations: 313 kB / 437.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3888, allocations: 0 / 437.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.3888, allocations: 8 kB / 437.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3888, allocations: 3.938 kB / 437.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.389, allocations: 71.95 kB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.3897, allocations: 393.3 kB / 438.1 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/0.3901, allocations: 180 kB / 438.3 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3902, allocations: 86.53 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.3903, allocations: 8 kB / 438.4 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.3905, allocations: 79.31 kB / 438.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.3905, allocations: 0 / 438.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006141/0.3911, allocations: 253.5 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.3912, allocations: 174.2 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.3917, allocations: 356.2 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3917, allocations: 26.08 kB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3918, allocations: 136.6 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.927e-05/0.3918, allocations: 35.78 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.3919, allocations: 53.89 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3921, allocations: 350.7 kB / 439.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.911e-05/0.3922, allocations: 40.39 kB / 439.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.3924, allocations: 194.9 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.3928, allocations: 211.2 kB / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3928, allocations: 0 / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004181/0.3932, allocations: 237.6 kB / 440.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3932, allocations: 8 kB / 440.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3932, allocations: 8.047 kB / 440.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.3932, allocations: 7.984 kB / 440.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.3934, allocations: 39.92 kB / 440.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.3934, allocations: 12.19 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.3935, allocations: 23.88 kB / 440.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.3936, allocations: 12.31 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002044/0.3938, allocations: 179.8 kB / 440.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/0.394, allocations: 141.4 kB / 440.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.3943, allocations: 123.4 kB / 441 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3943, allocations: 4 kB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3943, allocations: 3.938 kB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3943, allocations: 0 / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002805/0.3946, allocations: 244.5 kB / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3946, allocations: 7.938 kB / 441.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.3947, allocations: 27.98 kB / 441.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3947, allocations: 0 / 441.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.3948, allocations: 8 kB / 441.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3948, allocations: 3.984 kB / 441.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3948, allocations: 7.938 kB / 441.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004269/0.3952, allocations: 248.7 kB / 441.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.3953, allocations: 55.72 kB / 441.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.116e-05/0.3954, allocations: 4 kB / 441.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.3954, allocations: 4 kB / 441.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.3955, allocations: 15.92 kB / 441.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.3955, allocations: 8.062 kB / 441.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.3958, allocations: 255 kB / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3958, allocations: 0 / 441.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.3962, allocations: 52.08 kB / 442 MB, free: 12.13 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001633/0.3978, allocations: 448.2 kB / 442.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003788/0.3982, allocations: 140.7 kB / 442.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3982, allocations: 0 / 442.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.3983, allocations: 36.05 kB / 442.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.3988, allocations: 136.6 kB / 442.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00088/0.3997, allocations: 469.8 kB / 443.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.4002, allocations: 0.7675 MB / 443.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.818e-05/0.4003, allocations: 34.5 kB / 444 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.259e-05/0.4003, allocations: 31.42 kB / 444 MB, free: 10.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4003, allocations: 0 / 444 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Templates: time 0.00932/0.4097, allocations: 3.655 MB / 447.7 MB, free: 6.562 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.195320247905329]