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.001852/0.001852, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.002296/0.002296, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.487/1.487, allocations: 177.2 MB / 204.9 MB, free: 9.07 MB / 190.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.001568/0.001568, allocations: 45.97 kB / 325.5 MB, free: 304 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09393, allocations: 53.35 MB / 378.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003523/0.09745, allocations: 1.945 MB / 380.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.09982, allocations: 1.282 MB / 382.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.09997, allocations: 7.938 kB / 382.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.1003, allocations: 75.59 kB / 382.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003952/0.1007, allocations: 135.4 kB / 382.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007987/0.1015, allocations: 278.8 kB / 382.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.1018, allocations: 219.4 kB / 382.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1019, allocations: 44.5 kB / 382.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1021, allocations: 99.56 kB / 383 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.1023, allocations: 111.5 kB / 383.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.1023, allocations: 12 kB / 383.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001716/0.1025, allocations: 75.94 kB / 383.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1026, allocations: 71.7 kB / 383.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.1027, allocations: 79.45 kB / 383.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.1031, allocations: 294.8 kB / 383.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1031, allocations: 0 / 383.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1031, allocations: 0 / 383.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1031, allocations: 4 kB / 383.6 MB, free: 11.01 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.0008952/0.104, allocations: 0.5217 MB / 384.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.104, allocations: 12.03 kB / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.347e-05/0.1041, allocations: 28.75 kB / 384.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.1045, allocations: 258.4 kB / 384.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.1046, allocations: 12.38 kB / 384.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.1046, allocations: 16.12 kB / 384.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006534/0.1052, allocations: 347.2 kB / 384.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1053, allocations: 0 / 384.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.1053, allocations: 4 kB / 384.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.1053, allocations: 4 kB / 384.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.1055, allocations: 75.89 kB / 384.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.106, allocations: 338 kB / 385.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.1064, allocations: 184 kB / 385.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1066, allocations: 90.53 kB / 385.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.1066, allocations: 0 / 385.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.1068, allocations: 83.31 kB / 385.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.1068, allocations: 4 kB / 385.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005761/0.1074, allocations: 261.5 kB / 385.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1075, allocations: 144.9 kB / 385.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.1079, allocations: 352.2 kB / 386.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.1079, allocations: 33.7 kB / 386.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.108, allocations: 132.6 kB / 386.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.801e-05/0.1081, allocations: 35.78 kB / 386.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.41e-05/0.1081, allocations: 53.89 kB / 386.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1083, allocations: 350.7 kB / 386.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-05/0.1084, allocations: 40.45 kB / 386.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.1087, allocations: 238.3 kB / 387.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.109, allocations: 215.2 kB / 387.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.109, allocations: 0 / 387.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004422/0.1094, allocations: 245.3 kB / 387.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1094, allocations: 4 kB / 387.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1094, allocations: 4 kB / 387.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.1095, allocations: 8 kB / 387.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.1096, allocations: 43.91 kB / 387.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.1097, allocations: 12.47 kB / 387.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1098, allocations: 15.94 kB / 387.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.1098, allocations: 12 kB / 387.7 MB, free: 6.531 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.0002342/0.11, allocations: 183.9 kB / 387.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.1103, allocations: 149.4 kB / 388 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003301/0.1106, allocations: 131.5 kB / 388.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1106, allocations: 0 / 388.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1106, allocations: 4 kB / 388.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1106, allocations: 3.984 kB / 388.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.1109, allocations: 193.1 kB / 388.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1109, allocations: 0 / 388.3 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.111, allocations: 31.92 kB / 388.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.111, allocations: 0 / 388.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.111, allocations: 11.98 kB / 388.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.111, allocations: 0 / 388.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.111, allocations: 4 kB / 388.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004431/0.1115, allocations: 258.3 kB / 388.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1116, allocations: 55.72 kB / 388.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.1116, allocations: 8 kB / 388.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.112e-05/0.1117, allocations: 15.98 kB / 388.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.1118, allocations: 4 kB / 388.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.1118, allocations: 11.98 kB / 388.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002711/0.1121, allocations: 259.1 kB / 389 MB, free: 5.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1121, allocations: 3.938 kB / 389 MB, free: 5.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003323/0.1124, allocations: 47.94 kB / 389 MB, free: 5.098 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.001688/0.1141, allocations: 458.8 kB / 389.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003504/0.1144, allocations: 163.5 kB / 389.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1144, allocations: 0 / 389.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.786e-05/0.1145, allocations: 31.92 kB / 389.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005063/0.115, allocations: 132.9 kB / 389.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007788/0.1158, allocations: 462.9 kB / 390.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.116, allocations: 169.4 kB / 390.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.519e-05/0.1161, allocations: 38.64 kB / 390.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.797e-05/0.1161, allocations: 36.48 kB / 390.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1161, allocations: 0 / 390.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of Templates: time 0.008605/0.1247, allocations: 3.763 MB / 394.3 MB, free: 44 kB / 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 ida -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: 4.41065820096992]