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.001039/0.001039, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.0009385/0.0009385, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 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 0.9596/0.9596, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 1.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.021e-05/2.193e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002718/0.00274, allocations: 2.036 MB / 275 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.00455, allocations: 1.309 MB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.004694, allocations: 3.938 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.005051, allocations: 79.47 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004552/0.005507, allocations: 135.4 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007993/0.006306, allocations: 271 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.006584, allocations: 231.3 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.006693, allocations: 36.5 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.006827, allocations: 127.6 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.006954, allocations: 95.75 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.006977, allocations: 12 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.007113, allocations: 75.88 kB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/0.007177, allocations: 63.77 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.526e-05/0.007232, allocations: 59.77 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004102/0.007643, allocations: 239.1 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.007645, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.007645, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.007649, allocations: 0 / 277.7 MB, free: 12.79 MB / 266.7 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.0006191/0.008269, allocations: 0.6216 MB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.008306, allocations: 8.031 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.388e-05/0.00839, allocations: 40.75 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.008673, allocations: 252.6 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.008699, allocations: 12.38 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.008718, allocations: 12.38 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.009152, allocations: 287.4 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.009162, allocations: 3.938 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.009177, allocations: 8 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.009185, allocations: 0 / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.525e-05/0.00926, allocations: 47.83 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.009665, allocations: 387 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.009878, allocations: 185.3 kB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.806e-05/0.009956, allocations: 75.03 kB / 279.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.009974, allocations: 4 kB / 279.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/0.01007, allocations: 77.03 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.01008, allocations: 0 / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003161/0.01039, allocations: 197.5 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.01046, allocations: 118.8 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.01068, allocations: 350.3 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.01069, allocations: 25.7 kB / 280.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.156e-05/0.01077, allocations: 187.3 kB / 280.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.0108, allocations: 27.84 kB / 280.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.01084, allocations: 51.31 kB / 280.6 MB, free: 9.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003766/0.01122, allocations: 0.5079 MB / 281.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.397e-05/0.01125, allocations: 12 kB / 281.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.029e-05/0.01132, allocations: 115.4 kB / 281.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.736e-05/0.01141, allocations: 97.94 kB / 281.4 MB, free: 8.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01141, allocations: 4.031 kB / 281.4 MB, free: 8.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001472/0.01156, allocations: 133.4 kB / 281.5 MB, free: 8.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.01158, allocations: 8 kB / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.01158, allocations: 0 / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.01159, allocations: 0 / 281.5 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.536e-05/0.01167, allocations: 15.98 kB / 281.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.01168, allocations: 7.938 kB / 281.5 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.445e-05/0.01172, allocations: 8 kB / 281.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.01173, allocations: 8.156 kB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (16): * Single equations (assignments): 16 * 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.429e-05/0.01182, allocations: 176.8 kB / 281.7 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.01193, allocations: 125.4 kB / 281.8 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.01207, allocations: 115.5 kB / 282 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.01208, allocations: 0 / 282 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.01208, allocations: 7.938 kB / 282 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.01209, allocations: 3.984 kB / 282 MB, free: 8.156 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.01223, allocations: 208.4 kB / 282.2 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.01223, allocations: 0 / 282.2 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.157e-05/0.0123, allocations: 31.98 kB / 282.2 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.0123, allocations: 0 / 282.2 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.01231, allocations: 11.94 kB / 282.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.01231, allocations: 0 / 282.2 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01231, allocations: 4 kB / 282.2 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.01251, allocations: 231.4 kB / 282.4 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.855e-05/0.01257, allocations: 51.77 kB / 282.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.0126, allocations: 8 kB / 282.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.769e-05/0.01263, allocations: 3.984 kB / 282.5 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.01268, allocations: 11.98 kB / 282.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.01269, allocations: 8 kB / 282.5 MB, free: 7.531 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001327/0.01283, allocations: 242.9 kB / 282.8 MB, free: 7.293 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01283, allocations: 0 / 282.8 MB, free: 7.293 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.01302, allocations: 43.92 kB / 282.8 MB, free: 7.25 MB / 266.7 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.0008677/0.01388, allocations: 421.8 kB / 283.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.01405, allocations: 92.31 kB / 283.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01405, allocations: 0 / 283.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.761e-05/0.01409, allocations: 23.69 kB / 283.3 MB, free: 6.848 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.0144, allocations: 115.3 kB / 283.4 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004472/0.01484, allocations: 435.1 kB / 283.9 MB, free: 6.281 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.114e-05/0.01489, allocations: 100.3 kB / 284 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.895e-05/0.01494, allocations: 30.31 kB / 284 MB, free: 6.133 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.809e-05/0.01499, allocations: 28.48 kB / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01499, allocations: 0 / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of Templates: time 0.005228/0.02022, allocations: 3.789 MB / 287.8 MB, free: 2.355 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.791139878798276]