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.001465/0.001465, allocations: 123.4 kB / 18.46 MB, free: 4.598 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.001473/0.001473, allocations: 192.3 kB / 21.4 MB, free: 1.668 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.398/1.398, allocations: 225.6 MB / 249.8 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] 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.001467/0.001467, allocations: 55.91 kB / 366.8 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09183, allocations: 52.14 MB / 419 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003579/0.09541, allocations: 1.962 MB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.09747, allocations: 1.215 MB / 422.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.09759, allocations: 3.938 kB / 422.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003374/0.09793, allocations: 75.59 kB / 422.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.0982, allocations: 95.58 kB / 422.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008769/0.09908, allocations: 301.5 kB / 422.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.09937, allocations: 219.4 kB / 422.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.0995, allocations: 33.66 kB / 422.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.09963, allocations: 91.62 kB / 422.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.09979, allocations: 111.6 kB / 423 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.09983, allocations: 12 kB / 423.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.1, allocations: 79.88 kB / 423.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.243e-05/0.1001, allocations: 63.77 kB / 423.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.1002, allocations: 99.33 kB / 423.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004039/0.1006, allocations: 294.7 kB / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1006, allocations: 0 / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1006, allocations: 0 / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1006, allocations: 0 / 423.6 MB, free: 7.48 MB / 350.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.0008971/0.1015, allocations: 0.5854 MB / 424.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.1015, allocations: 15.89 kB / 424.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.243e-05/0.1016, allocations: 28.75 kB / 424.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.102, allocations: 323.6 kB / 424.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.1021, allocations: 8.375 kB / 424.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.1021, allocations: 16.12 kB / 424.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005949/0.1027, allocations: 319.9 kB / 424.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1027, allocations: 0 / 424.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.1027, allocations: 4 kB / 424.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1027, allocations: 7.938 kB / 424.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.1029, allocations: 67.95 kB / 424.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.1034, allocations: 422.3 kB / 425.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.1038, allocations: 184 kB / 425.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.104, allocations: 78.55 kB / 425.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.104, allocations: 8 kB / 425.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.1042, allocations: 83.25 kB / 425.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.452e-06/0.1042, allocations: 0 / 425.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005726/0.1048, allocations: 257.5 kB / 425.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.1049, allocations: 174.4 kB / 426.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.1053, allocations: 350.9 kB / 426.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.1053, allocations: 25.7 kB / 426.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1054, allocations: 140.6 kB / 426.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.1054, allocations: 23.84 kB / 426.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.867e-05/0.1055, allocations: 61.92 kB / 426.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1057, allocations: 334.8 kB / 427 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.836e-05/0.1058, allocations: 40.45 kB / 427.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.106, allocations: 195.6 kB / 427.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.1062, allocations: 215.2 kB / 427.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1063, allocations: 4 kB / 427.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000392/0.1066, allocations: 237.3 kB / 427.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.1067, allocations: 4 kB / 427.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1067, allocations: 7.984 kB / 427.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1067, allocations: 8 kB / 427.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1068, allocations: 39.92 kB / 427.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.1069, allocations: 19.86 kB / 427.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.107, allocations: 15.89 kB / 427.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.107, allocations: 12 kB / 427.8 MB, free: 2.812 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.000177/0.1072, allocations: 184.2 kB / 428 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.1074, allocations: 133.5 kB / 428.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.773e-05/0.1074, allocations: 37.73 kB / 428.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1075, allocations: 4.469 kB / 428.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1075, allocations: 3.938 kB / 428.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1075, allocations: 0 / 428.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.1077, allocations: 265.8 kB / 428.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1077, allocations: 0 / 428.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.1078, allocations: 43.86 kB / 428.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.1079, allocations: 4 kB / 428.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1079, allocations: 3.984 kB / 428.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1079, allocations: 4 kB / 428.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1079, allocations: 3.938 kB / 428.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.1083, allocations: 242.5 kB / 428.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.1084, allocations: 128.8 kB / 428.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.1084, allocations: 8 kB / 428.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.1085, allocations: 15.92 kB / 428.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.705e-05/0.1086, allocations: 7.938 kB / 428.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.1086, allocations: 15.98 kB / 428.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002591/0.1089, allocations: 249.9 kB / 429.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1089, allocations: 0 / 429.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.1092, allocations: 51.92 kB / 429.2 MB, free: 1.332 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.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.001484/0.1107, allocations: 433.9 kB / 429.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003534/0.111, allocations: 147.7 kB / 429.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.111, allocations: 1.062 kB / 429.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.928e-05/0.1111, allocations: 27.98 kB / 429.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.1116, allocations: 126.6 kB / 429.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000766/0.1124, allocations: 499.4 kB / 430.4 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.1128, allocations: 0.7673 MB / 431.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.842e-05/0.1129, allocations: 31.42 kB / 431.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1129, allocations: 0 / 431.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of Templates: time 0.006066/0.1189, allocations: 3.627 MB / 434.8 MB, free: 11.8 MB / 366.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.2187824649736285]