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.001471/0.001471, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001433/0.001433, allocations: 140.4 kB / 25.59 MB, free: 8.906 MB / 18.57 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.039/1.039, allocations: 173.4 MB / 202.3 MB, free: 8.293 MB / 186.7 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 1.542e-06/1.542e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.256e-05/2.411e-05, allocations: 2.312 kB / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003098/0.003122, allocations: 1.989 MB / 271.2 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.004768, allocations: 1.155 MB / 272.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.004917, allocations: 7.938 kB / 272.3 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003392/0.005256, allocations: 71.59 kB / 272.4 MB, free: 6.543 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.005525, allocations: 100.5 kB / 272.5 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006773/0.006202, allocations: 305.5 kB / 272.8 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.006442, allocations: 215.3 kB / 273 MB, free: 5.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.006551, allocations: 33.8 kB / 273.1 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.006689, allocations: 125 kB / 273.2 MB, free: 5.781 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.006817, allocations: 91.77 kB / 273.3 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.006842, allocations: 12 kB / 273.3 MB, free: 5.68 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.006975, allocations: 80.44 kB / 273.4 MB, free: 5.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.518e-05/0.007051, allocations: 67.75 kB / 273.4 MB, free: 5.535 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.554e-05/0.007106, allocations: 56.38 kB / 273.5 MB, free: 5.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.00742, allocations: 228.3 kB / 273.7 MB, free: 5.258 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.007423, allocations: 0 / 273.7 MB, free: 5.258 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007424, allocations: 0 / 273.7 MB, free: 5.258 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.007429, allocations: 0 / 273.7 MB, free: 5.258 MB / 250.7 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.0006077/0.008037, allocations: 0.6111 MB / 274.3 MB, free: 4.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.008071, allocations: 8.031 kB / 274.3 MB, free: 4.598 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.7e-05/0.008138, allocations: 46.22 kB / 274.4 MB, free: 4.555 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.008392, allocations: 233.3 kB / 274.6 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.008418, allocations: 12.38 kB / 274.6 MB, free: 4.293 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.008436, allocations: 17.19 kB / 274.6 MB, free: 4.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.008757, allocations: 265.4 kB / 274.9 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.008769, allocations: 3.938 kB / 274.9 MB, free: 3.984 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.00878, allocations: 4 kB / 274.9 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.008786, allocations: 3.984 kB / 274.9 MB, free: 3.977 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.777e-05/0.008844, allocations: 35.91 kB / 274.9 MB, free: 3.941 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.009228, allocations: 343.6 kB / 275.3 MB, free: 3.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.009427, allocations: 157.5 kB / 275.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.268e-05/0.00949, allocations: 71.05 kB / 275.5 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.009511, allocations: 4 kB / 275.5 MB, free: 3.293 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001082/0.009619, allocations: 73 kB / 275.6 MB, free: 3.207 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.009621, allocations: 3.938 kB / 275.6 MB, free: 3.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005488/0.01017, allocations: 189.3 kB / 275.8 MB, free: 3.012 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.01023, allocations: 118.7 kB / 275.9 MB, free: 2.871 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.01043, allocations: 330.2 kB / 276.2 MB, free: 2.531 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.01044, allocations: 29.7 kB / 276.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.01053, allocations: 187.3 kB / 276.4 MB, free: 2.309 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.01056, allocations: 27.77 kB / 276.4 MB, free: 2.281 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.464e-05/0.0106, allocations: 43.34 kB / 276.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.01072, allocations: 0.5157 MB / 277 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.272e-05/0.01075, allocations: 11.98 kB / 277 MB, free: 1.691 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.134e-05/0.01081, allocations: 103.5 kB / 277.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.46e-05/0.01088, allocations: 98.31 kB / 277.2 MB, free: 1.434 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01089, allocations: 3.938 kB / 277.2 MB, free: 1.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001389/0.01102, allocations: 125.3 kB / 277.3 MB, free: 1.301 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.01104, allocations: 10.19 kB / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.01104, allocations: 4 kB / 277.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.01106, allocations: 4 kB / 277.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.011e-05/0.01113, allocations: 15.98 kB / 277.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.01113, allocations: 0 / 277.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.603e-05/0.01117, allocations: 11.95 kB / 277.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.01118, allocations: 7.938 kB / 277.4 MB, free: 1.25 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (16): * Single equations (assignments): 16 * 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 9.222e-05/0.01127, allocations: 176.5 kB / 277.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.01139, allocations: 117.7 kB / 277.7 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.01152, allocations: 111.4 kB / 277.8 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.01152, allocations: 4 kB / 277.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.01153, allocations: 0 / 277.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.01153, allocations: 3.984 kB / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.01167, allocations: 161.1 kB / 277.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01168, allocations: 0 / 277.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.164e-05/0.01176, allocations: 27.98 kB / 278 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.01176, allocations: 3.938 kB / 278 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.01177, allocations: 8 kB / 278 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.01178, allocations: 7.875 kB / 278 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.01178, allocations: 3.984 kB / 278 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.01193, allocations: 151.6 kB / 278.1 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.298e-05/0.01199, allocations: 47.73 kB / 278.2 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.01202, allocations: 15.98 kB / 278.2 MB, free: 352 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.337e-05/0.01206, allocations: 8 kB / 278.2 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.0121, allocations: 11.97 kB / 278.2 MB, free: 332 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.01211, allocations: 8 kB / 278.2 MB, free: 324 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.01222, allocations: 218.9 kB / 278.4 MB, free: 104 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01222, allocations: 0 / 278.4 MB, free: 104 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.01242, allocations: 47.92 kB / 278.5 MB, free: 56 kB / 250.7 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.0009132/0.01333, allocations: 405.4 kB / 278.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001588/0.01349, allocations: 87.56 kB / 279 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.01349, allocations: 4 kB / 279 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.536e-05/0.01353, allocations: 23.67 kB / 279 MB, free: 15.67 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.01386, allocations: 118 kB / 279.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.01435, allocations: 414.9 kB / 279.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.042e-05/0.01441, allocations: 100.3 kB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.276e-05/0.01446, allocations: 22.2 kB / 279.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.01457, allocations: 122.2 kB / 279.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01457, allocations: 0 / 279.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Templates: time 0.006331/0.0209, allocations: 3.893 MB / 283.6 MB, free: 11.02 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0571286119520664]