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.002158/0.002158, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001799/0.001799, allocations: 213.3 kB / 24.48 MB, free: 3.941 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.603/1.603, allocations: 230.6 MB / 258.2 MB, free: 7.746 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.001849/0.001849, allocations: 47.92 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3827, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.005419/0.3881, allocations: 1.954 MB / 434.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.3913, allocations: 1.278 MB / 435.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.3915, allocations: 7.938 kB / 435.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005017/0.392, allocations: 75.53 kB / 435.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005899/0.3926, allocations: 139.4 kB / 435.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.3937, allocations: 274.4 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.3941, allocations: 223.4 kB / 436.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.3944, allocations: 39.52 kB / 436.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.3945, allocations: 103.6 kB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.3948, allocations: 111.5 kB / 436.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.3948, allocations: 16 kB / 436.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002478/0.3951, allocations: 79.94 kB / 436.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.3952, allocations: 63.77 kB / 436.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3953, allocations: 83.39 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006664/0.396, allocations: 294.5 kB / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.396, allocations: 0 / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.396, allocations: 0 / 437 MB, free: 2.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.396, allocations: 3.984 kB / 437 MB, free: 2.012 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.001225/0.3973, allocations: 0.5255 MB / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.3973, allocations: 8.031 kB / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.3974, allocations: 36.75 kB / 437.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.398, allocations: 250.5 kB / 437.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.398, allocations: 12.38 kB / 437.9 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/0.398, allocations: 16.12 kB / 437.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007668/0.3988, allocations: 341.8 kB / 438.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.3988, allocations: 0 / 438.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.3989, allocations: 4 kB / 438.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3989, allocations: 4 kB / 438.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.3991, allocations: 71.89 kB / 438.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006544/0.3997, allocations: 334 kB / 438.6 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.4002, allocations: 195.9 kB / 438.8 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.4004, allocations: 82.62 kB / 438.9 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.4004, allocations: 4 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.4006, allocations: 87.31 kB / 439 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.264e-06/0.4006, allocations: 3.938 kB / 439 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007351/0.4014, allocations: 269.5 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.4015, allocations: 144.5 kB / 439.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/0.402, allocations: 360.2 kB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.4021, allocations: 33.69 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.4022, allocations: 128.6 kB / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.4023, allocations: 35.78 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.4024, allocations: 53.89 kB / 440 MB, free: 14.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002577/0.4026, allocations: 346.7 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.4027, allocations: 36.45 kB / 440.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.4031, allocations: 241.4 kB / 440.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.4034, allocations: 211.3 kB / 440.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.4034, allocations: 3.938 kB / 440.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000463/0.4039, allocations: 241.5 kB / 441 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.4039, allocations: 8 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4039, allocations: 4 kB / 441.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.897e-05/0.404, allocations: 8 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.4042, allocations: 39.91 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.4042, allocations: 4 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.4043, allocations: 12 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.4043, allocations: 16 kB / 441.1 MB, free: 13.54 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.0002484/0.4046, allocations: 183.8 kB / 441.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.4048, allocations: 141.7 kB / 441.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003505/0.4052, allocations: 131.4 kB / 441.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.4052, allocations: 4 kB / 441.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/0.4052, allocations: 4 kB / 441.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4052, allocations: 7.984 kB / 441.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.4055, allocations: 193.1 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4055, allocations: 0 / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/0.4056, allocations: 32.39 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4056, allocations: 0 / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.4057, allocations: 15.98 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.4057, allocations: 3.938 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.4057, allocations: 4 kB / 441.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.4062, allocations: 270 kB / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.4063, allocations: 47.78 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.4064, allocations: 11.94 kB / 442.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.12e-05/0.4065, allocations: 3.984 kB / 442.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.311e-05/0.4065, allocations: 11.98 kB / 442.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.4066, allocations: 8 kB / 442.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000346/0.4069, allocations: 259 kB / 442.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4069, allocations: 4 kB / 442.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003813/0.4073, allocations: 47.94 kB / 442.5 MB, free: 12.11 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 (23): * Single equations (assignments): 21 * 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.002039/0.4093, allocations: 464.4 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004885/0.4098, allocations: 172.5 kB / 443.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4098, allocations: 0 / 443.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.4099, allocations: 23.98 kB / 443.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006819/0.4106, allocations: 126.9 kB / 443.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.4118, allocations: 473.8 kB / 443.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.412, allocations: 161.5 kB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.4121, allocations: 34.67 kB / 443.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.702e-05/0.4122, allocations: 31.42 kB / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4122, allocations: 0 / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01082/0.423, allocations: 3.929 MB / 447.9 MB, free: 6.898 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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.780366542996489]