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.0007767/0.0007767, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0008343/0.0008343, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.8999/0.8999, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.643e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002326/0.002342, allocations: 1.961 MB / 326.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.003737, allocations: 1.289 MB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.003845, allocations: 3.938 kB / 327.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.004127, allocations: 67.61 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/0.004419, allocations: 143.2 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005031/0.004922, allocations: 281.8 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.005132, allocations: 231.4 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.005238, allocations: 32.56 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.005364, allocations: 123.6 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.005485, allocations: 95.75 kB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.005507, allocations: 12 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.00563, allocations: 79.88 kB / 328.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.706e-05/0.005697, allocations: 67.7 kB / 328.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.005758, allocations: 55.83 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.006051, allocations: 307 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.006053, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.006055, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.00606, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.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.0006266/0.006687, allocations: 0.5208 MB / 329.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.006727, allocations: 8.031 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.609e-05/0.006763, allocations: 46.73 kB / 329.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/0.006809, allocations: 36.75 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.007091, allocations: 249.8 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.007109, allocations: 12.38 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.007126, allocations: 12.38 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.007546, allocations: 360.1 kB / 330.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.007554, allocations: 3.938 kB / 330.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.007568, allocations: 7.984 kB / 330.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.007575, allocations: 7.984 kB / 330.5 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.007694, allocations: 67.95 kB / 330.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003941/0.008088, allocations: 369.4 kB / 331 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.008321, allocations: 184 kB / 331.1 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.008419, allocations: 94.41 kB / 331.2 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.008441, allocations: 0 / 331.2 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001222/0.008563, allocations: 79.38 kB / 331.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 9.72e-07/0.008564, allocations: 0 / 331.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003716/0.008935, allocations: 265.5 kB / 331.6 MB, free: 8.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.009002, allocations: 144.5 kB / 331.7 MB, free: 8.551 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.009246, allocations: 356.2 kB / 332.1 MB, free: 8.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.009263, allocations: 33.7 kB / 332.1 MB, free: 8.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.009334, allocations: 140.5 kB / 332.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.009357, allocations: 27.84 kB / 332.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.009401, allocations: 37.7 kB / 332.3 MB, free: 7.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.611e-05/0.009487, allocations: 338.8 kB / 332.6 MB, free: 7.602 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.07e-05/0.009538, allocations: 31.98 kB / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.218e-05/0.00963, allocations: 142.2 kB / 332.8 MB, free: 7.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.00974, allocations: 113.4 kB / 332.9 MB, free: 7.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.009742, allocations: 0 / 332.9 MB, free: 7.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001617/0.009903, allocations: 157.3 kB / 333.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.009915, allocations: 4 kB / 333.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.009919, allocations: 0 / 333.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.009932, allocations: 4.156 kB / 333.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.928e-05/0.01, allocations: 27.92 kB / 333.1 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.01001, allocations: 4 kB / 333.1 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.656e-05/0.01005, allocations: 11.92 kB / 333.1 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.525e-06/0.01006, allocations: 4 kB / 333.1 MB, free: 7.051 MB / 298.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 0.0001074/0.01017, allocations: 169.7 kB / 333.3 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.0103, allocations: 149.7 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.01047, allocations: 127.5 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.01048, allocations: 4 kB / 333.5 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.01048, allocations: 4 kB / 333.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.01048, allocations: 96 / 333.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.01064, allocations: 228.5 kB / 333.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01064, allocations: 0 / 333.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.492e-05/0.01072, allocations: 31.92 kB / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01073, allocations: 0 / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.01074, allocations: 11.98 kB / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.01074, allocations: 0 / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.01074, allocations: 0 / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.01099, allocations: 258.3 kB / 334.1 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.01106, allocations: 59.7 kB / 334.1 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.01108, allocations: 12.06 kB / 334.1 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.395e-05/0.01113, allocations: 8 kB / 334.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.01117, allocations: 7.984 kB / 334.2 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.01119, allocations: 15.98 kB / 334.2 MB, free: 5.898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.01135, allocations: 259 kB / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.01135, allocations: 0 / 334.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002263/0.01158, allocations: 39.94 kB / 334.5 MB, free: 5.605 MB / 298.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.001251/0.01283, allocations: 1.246 MB / 335.7 MB, free: 4.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.01301, allocations: 118.5 kB / 335.8 MB, free: 4.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.01302, allocations: 4 kB / 335.8 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.828e-05/0.01307, allocations: 27.98 kB / 335.9 MB, free: 4.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.01339, allocations: 113 kB / 336 MB, free: 4.254 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.01534, allocations: 2.47 MB / 338.4 MB, free: 1.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.01545, allocations: 161.4 kB / 338.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.645e-05/0.01552, allocations: 30.33 kB / 338.6 MB, free: 1.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.434e-05/0.01561, allocations: 84.47 kB / 338.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01561, allocations: 0 / 338.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.03503, allocations: 7.294 MB / 346 MB, free: 10.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.698/6.733, allocations: 3.656 kB / 346 MB, free: 10.15 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] 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: 8.427686451934278]