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.001479/0.001479, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001689/0.001689, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001731/0.001731, allocations: 51.92 kB / 378.2 MB, free: 2.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.29, allocations: 53.35 MB / 431.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004119/0.2941, allocations: 1.966 MB / 433.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.2968, allocations: 1.27 MB / 434.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.297, allocations: 7.938 kB / 434.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.2974, allocations: 71.59 kB / 434.9 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004407/0.2978, allocations: 151.4 kB / 435 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000852/0.2986, allocations: 273.4 kB / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.299, allocations: 227.4 kB / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.2991, allocations: 36.56 kB / 435.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.2993, allocations: 91.62 kB / 435.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.2995, allocations: 115.5 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.2996, allocations: 12 kB / 435.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.2998, allocations: 83.88 kB / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.886e-05/0.2999, allocations: 67.81 kB / 435.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.3, allocations: 71.47 kB / 436 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004786/0.3004, allocations: 304 kB / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3004, allocations: 0 / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3004, allocations: 0 / 436.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.3005, allocations: 4 kB / 436.3 MB, free: 2.012 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.00102/0.3015, allocations: 0.5256 MB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.3015, allocations: 8.031 kB / 436.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.033e-05/0.3016, allocations: 28.75 kB / 436.8 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.302, allocations: 254.5 kB / 437.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.3021, allocations: 8.375 kB / 437.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.3021, allocations: 16.12 kB / 437.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.3027, allocations: 345.7 kB / 437.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3028, allocations: 0 / 437.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.3028, allocations: 15.94 kB / 437.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3028, allocations: 0 / 437.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.303, allocations: 75.89 kB / 437.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.3035, allocations: 338 kB / 437.9 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.3039, allocations: 187.8 kB / 438.1 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.3041, allocations: 90.7 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.3042, allocations: 4 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.3043, allocations: 83.33 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.734e-06/0.3044, allocations: 0 / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006233/0.305, allocations: 261.5 kB / 438.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.3051, allocations: 140.5 kB / 438.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004138/0.3055, allocations: 360.1 kB / 439 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.3056, allocations: 33.7 kB / 439 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.3057, allocations: 132.6 kB / 439.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.688e-05/0.3058, allocations: 31.78 kB / 439.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3059, allocations: 53.89 kB / 439.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.3061, allocations: 346.7 kB / 439.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.3063, allocations: 44.45 kB / 439.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.3067, allocations: 237.5 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.3071, allocations: 207.2 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.3071, allocations: 4.25 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004573/0.3075, allocations: 245.1 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3075, allocations: 8 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3076, allocations: 4 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3076, allocations: 4 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.3077, allocations: 43.91 kB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.3078, allocations: 8.469 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.3079, allocations: 20.31 kB / 440.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.3079, allocations: 8 kB / 440.4 MB, free: 13.54 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.0002584/0.3082, allocations: 187.6 kB / 440.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002935/0.3085, allocations: 145.3 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.3088, allocations: 135.8 kB / 440.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3088, allocations: 4 kB / 440.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3088, allocations: 0 / 440.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3088, allocations: 3.984 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.309, allocations: 201.1 kB / 441 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.309, allocations: 4 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.3092, allocations: 23.98 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.3092, allocations: 4 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.3092, allocations: 7.984 kB / 441.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3092, allocations: 4 kB / 441.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3092, allocations: 3.938 kB / 441.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/0.3096, allocations: 254 kB / 441.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.3098, allocations: 47.78 kB / 441.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.3098, allocations: 8 kB / 441.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-05/0.3099, allocations: 15.98 kB / 441.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.985e-05/0.31, allocations: 8 kB / 441.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.31, allocations: 11.98 kB / 441.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.3103, allocations: 255 kB / 441.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3103, allocations: 0 / 441.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000344/0.3106, allocations: 51.94 kB / 441.7 MB, free: 12.12 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.001703/0.3123, allocations: 473.8 kB / 442.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.3127, allocations: 167.5 kB / 442.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3127, allocations: 0 / 442.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.219e-05/0.3128, allocations: 31.92 kB / 442.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005433/0.3133, allocations: 123.5 kB / 442.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008397/0.3142, allocations: 469.8 kB / 443 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.3144, allocations: 161.7 kB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.3145, allocations: 42.59 kB / 443.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-05/0.3145, allocations: 31.42 kB / 443.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3145, allocations: 3.938 kB / 443.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of Templates: time 0.009611/0.3242, allocations: 3.911 MB / 447.1 MB, free: 6.906 MB / 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/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.76770188473165]