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.001455/0.001455, allocations: 115.1 kB / 18.45 MB, free: 4.566 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.001752/0.001752, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.57/1.57, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.001564/0.001564, allocations: 47.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1076, allocations: 53.33 MB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003642/0.1113, allocations: 1.986 MB / 429.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.1136, allocations: 1.364 MB / 430.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.1137, allocations: 7.938 kB / 430.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.114, allocations: 71.59 kB / 430.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.1144, allocations: 147.4 kB / 431.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007989/0.1152, allocations: 262.5 kB / 431.3 MB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.1155, allocations: 227.4 kB / 431.5 MB, free: 228 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.1156, allocations: 32.3 kB / 431.6 MB, free: 196 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.1158, allocations: 99.61 kB / 431.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1159, allocations: 119.4 kB / 431.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.116, allocations: 12 kB / 431.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.1161, allocations: 71.95 kB / 431.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.112e-05/0.1162, allocations: 75.75 kB / 431.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.1163, allocations: 91.36 kB / 432 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.1168, allocations: 302.7 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1168, allocations: 3.938 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1168, allocations: 0 / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1168, allocations: 0 / 432.3 MB, free: 15.43 MB / 366.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.0009458/0.1177, allocations: 0.597 MB / 432.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1177, allocations: 8.031 kB / 432.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.268e-05/0.1178, allocations: 32.75 kB / 433 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.1182, allocations: 319.7 kB / 433.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.1183, allocations: 16.34 kB / 433.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.1183, allocations: 16.12 kB / 433.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006079/0.1189, allocations: 323.8 kB / 433.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.1189, allocations: 0 / 433.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.1189, allocations: 11.94 kB / 433.6 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1189, allocations: 4 kB / 433.6 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.1191, allocations: 67.91 kB / 433.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.1197, allocations: 414.3 kB / 434.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.1201, allocations: 195.9 kB / 434.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.1203, allocations: 82.53 kB / 434.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1203, allocations: 12.22 kB / 434.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.1205, allocations: 79.38 kB / 434.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.1205, allocations: 0 / 434.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.000726/0.1212, allocations: 253.3 kB / 434.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.1214, allocations: 170.1 kB / 434.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.1218, allocations: 358.9 kB / 435.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.824e-05/0.1219, allocations: 33.7 kB / 435.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.122, allocations: 128.7 kB / 435.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.768e-05/0.1221, allocations: 39.81 kB / 435.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.292e-05/0.1222, allocations: 53.89 kB / 435.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.1224, allocations: 343.1 kB / 435.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.1225, allocations: 44.44 kB / 435.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.1227, allocations: 178.9 kB / 436 MB, free: 11.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/0.1231, allocations: 211.5 kB / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1231, allocations: 7.938 kB / 436.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004038/0.1235, allocations: 233.6 kB / 436.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.1235, allocations: 8 kB / 436.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.1235, allocations: 8.031 kB / 436.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1235, allocations: 4 kB / 436.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.1237, allocations: 47.84 kB / 436.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.1237, allocations: 7.938 kB / 436.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.1238, allocations: 19.89 kB / 436.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.1238, allocations: 16 kB / 436.6 MB, free: 10.74 MB / 366.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.0001827/0.124, allocations: 172 kB / 436.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002187/0.1242, allocations: 141.4 kB / 436.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.087e-05/0.1243, allocations: 33.78 kB / 436.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.1243, allocations: 7.938 kB / 436.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1243, allocations: 3.938 kB / 436.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1243, allocations: 3.984 kB / 436.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.1246, allocations: 269.4 kB / 437.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1246, allocations: 0 / 437.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.1247, allocations: 35.92 kB / 437.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1247, allocations: 0 / 437.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.1247, allocations: 4 kB / 437.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1247, allocations: 4.391 kB / 437.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1247, allocations: 3.938 kB / 437.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.1252, allocations: 250.5 kB / 437.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.1253, allocations: 132.9 kB / 437.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.1253, allocations: 12 kB / 437.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.1254, allocations: 8 kB / 437.6 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.1255, allocations: 15.92 kB / 437.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.1255, allocations: 8 kB / 437.7 MB, free: 9.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002747/0.1258, allocations: 257.9 kB / 437.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1258, allocations: 0 / 437.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1261, allocations: 47.98 kB / 438 MB, free: 9.25 MB / 366.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001588/0.1277, allocations: 437.3 kB / 438.4 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.1281, allocations: 151.8 kB / 438.5 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1281, allocations: 0 / 438.5 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.447e-05/0.1281, allocations: 27.98 kB / 438.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000523/0.1287, allocations: 118.7 kB / 438.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009629/0.1296, allocations: 0.5033 MB / 439.2 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.1301, allocations: 0.7674 MB / 440 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.1302, allocations: 31.42 kB / 440 MB, free: 7.316 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1302, allocations: 0 / 440 MB, free: 7.316 MB / 366.1 MB Notification: Performance of Templates: time 0.007917/0.1381, allocations: 3.703 MB / 443.7 MB, free: 3.625 MB / 366.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/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: 8.00582381899585]