Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001321/0.001321, allocations: 70.11 kB / 21.24 MB, free: 0.5547 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.001388/0.001388, allocations: 149.7 kB / 24.49 MB, free: 3.855 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.396/1.396, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 179] 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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 42.25 kB / 319.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09612/0.09759, allocations: 52.17 MB / 371.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003532/0.1011, allocations: 1.935 MB / 373.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.1032, allocations: 1.134 MB / 374.6 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.1033, allocations: 7.938 kB / 374.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.1036, allocations: 75.59 kB / 374.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.1039, allocations: 95.58 kB / 374.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008164/0.1047, allocations: 314.4 kB / 375.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003008/0.105, allocations: 219.4 kB / 375.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1051, allocations: 33.88 kB / 375.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.1053, allocations: 91.62 kB / 375.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1054, allocations: 111.5 kB / 375.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.1055, allocations: 12 kB / 375.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.1057, allocations: 75.94 kB / 375.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.036e-05/0.1057, allocations: 67.75 kB / 375.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.445e-05/0.1058, allocations: 71.53 kB / 375.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.1063, allocations: 294.7 kB / 376.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1063, allocations: 4 kB / 376.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1063, allocations: 0 / 376.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1063, allocations: 0 / 376.1 MB, free: 2.84 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.0008306/0.1071, allocations: 0.5178 MB / 376.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1071, allocations: 12.02 kB / 376.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.412e-05/0.1072, allocations: 32.75 kB / 376.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.1076, allocations: 238.6 kB / 376.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.1076, allocations: 20.31 kB / 376.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.1076, allocations: 16.12 kB / 376.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005872/0.1082, allocations: 347.2 kB / 377.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.1082, allocations: 0 / 377.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.1082, allocations: 0 / 377.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.1082, allocations: 8 kB / 377.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.1084, allocations: 75.89 kB / 377.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005474/0.109, allocations: 338 kB / 377.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.1094, allocations: 183.9 kB / 377.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1096, allocations: 98.45 kB / 377.9 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.1096, allocations: 4 kB / 377.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.1097, allocations: 79.38 kB / 378 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.1097, allocations: 0 / 378 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005622/0.1103, allocations: 257.6 kB / 378.3 MB, free: 484 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.1104, allocations: 156.4 kB / 378.4 MB, free: 296 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004463/0.1109, allocations: 348.2 kB / 378.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.1109, allocations: 29.7 kB / 378.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.111, allocations: 132.8 kB / 378.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.111, allocations: 31.83 kB / 378.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.1111, allocations: 53.94 kB / 379 MB, free: 15.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1113, allocations: 346.7 kB / 379.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.723e-05/0.1114, allocations: 40.45 kB / 379.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.1116, allocations: 233.5 kB / 379.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.1119, allocations: 215.2 kB / 379.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1119, allocations: 0 / 379.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004169/0.1123, allocations: 241.1 kB / 380.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1124, allocations: 8 kB / 380.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1124, allocations: 4 kB / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1124, allocations: 4.531 kB / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.1126, allocations: 52.16 kB / 380.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1126, allocations: 4 kB / 380.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.1127, allocations: 23.89 kB / 380.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1127, allocations: 12 kB / 380.2 MB, free: 14.37 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.0002265/0.1129, allocations: 183.6 kB / 380.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.1132, allocations: 141.4 kB / 380.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003007/0.1135, allocations: 135.4 kB / 380.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1135, allocations: 4 kB / 380.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1135, allocations: 4 kB / 380.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1135, allocations: 3.984 kB / 380.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.1137, allocations: 185.1 kB / 380.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.1137, allocations: 0 / 380.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.1139, allocations: 39.86 kB / 380.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1139, allocations: 0 / 380.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1139, allocations: 4 kB / 380.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1139, allocations: 0 / 380.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1139, allocations: 4 kB / 380.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.1143, allocations: 258.4 kB / 381.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.1144, allocations: 51.78 kB / 381.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.1145, allocations: 8.094 kB / 381.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.673e-05/0.1145, allocations: 7.938 kB / 381.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.1146, allocations: 11.98 kB / 381.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.1146, allocations: 11.98 kB / 381.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.1149, allocations: 251 kB / 381.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1149, allocations: 0 / 381.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.1152, allocations: 51.92 kB / 381.5 MB, free: 12.96 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.001658/0.1169, allocations: 457.9 kB / 381.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003699/0.1172, allocations: 159.6 kB / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1172, allocations: 0 / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.973e-05/0.1173, allocations: 31.92 kB / 382.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.1178, allocations: 118.3 kB / 382.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007923/0.1186, allocations: 473.5 kB / 382.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.1188, allocations: 157.5 kB / 382.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.838e-05/0.1189, allocations: 42.39 kB / 382.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.883e-05/0.119, allocations: 28.48 kB / 382.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.119, allocations: 0 / 382.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Templates: time 0.008416/0.1274, allocations: 3.718 MB / 386.6 MB, free: 7.984 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.1986247029853985]