Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 160.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8714/0.8714, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.146e-05, allocations: 6.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002555/0.002577, allocations: 1.955 MB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.004228, allocations: 1.285 MB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.004389, allocations: 7.938 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.00472, allocations: 71.59 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003768/0.005097, allocations: 143.2 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006864/0.005783, allocations: 274 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.006071, allocations: 227.3 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.006191, allocations: 32.58 kB / 328.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.00634, allocations: 131.6 kB / 328.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.006481, allocations: 91.77 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.006505, allocations: 15.94 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.00666, allocations: 75.88 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.463e-05/0.006735, allocations: 71.75 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.916e-05/0.006804, allocations: 55.78 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.007154, allocations: 303 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.007157, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.007159, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.007165, allocations: 3.984 kB / 329.2 MB, free: 11.16 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.0007342/0.0079, allocations: 0.5178 MB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.007942, allocations: 11.98 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.865e-05/0.00798, allocations: 46.73 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.008045, allocations: 32.75 kB / 329.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.008364, allocations: 249.8 kB / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.008385, allocations: 24.23 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.008403, allocations: 12.38 kB / 330.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.008856, allocations: 345.4 kB / 330.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.008866, allocations: 192 / 330.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.008881, allocations: 8.125 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.008887, allocations: 4 kB / 330.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.009014, allocations: 71.89 kB / 330.5 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.009463, allocations: 365.5 kB / 330.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.00971, allocations: 195.9 kB / 331.1 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.507e-05/0.009805, allocations: 86.53 kB / 331.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.009827, allocations: 4 kB / 331.2 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001244/0.009951, allocations: 83.31 kB / 331.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.009952, allocations: 0 / 331.2 MB, free: 8.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003701/0.01032, allocations: 261.5 kB / 331.5 MB, free: 8.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.01039, allocations: 148.5 kB / 331.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.01064, allocations: 356.2 kB / 332 MB, free: 8.141 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.01065, allocations: 33.7 kB / 332 MB, free: 8.102 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.01073, allocations: 136.6 kB / 332.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.01076, allocations: 23.84 kB / 332.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.0108, allocations: 37.7 kB / 332.2 MB, free: 7.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.01089, allocations: 338.8 kB / 332.6 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.145e-05/0.01094, allocations: 27.98 kB / 332.6 MB, free: 7.531 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.224e-05/0.01103, allocations: 155 kB / 332.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.01115, allocations: 109 kB / 332.8 MB, free: 7.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.01115, allocations: 4 kB / 332.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001709/0.01132, allocations: 153.3 kB / 333 MB, free: 7.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.01133, allocations: 8 kB / 333 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.01134, allocations: 4.312 kB / 333 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.01135, allocations: 4 kB / 333 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.448e-05/0.01143, allocations: 24.08 kB / 333 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.01143, allocations: 0 / 333 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.041e-05/0.01148, allocations: 15.88 kB / 333 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.01149, allocations: 8 kB / 333.1 MB, free: 6.996 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.0001364/0.01163, allocations: 170.1 kB / 333.2 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.01177, allocations: 141.4 kB / 333.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.01198, allocations: 131.5 kB / 333.5 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.01198, allocations: 4 kB / 333.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.01199, allocations: 0 / 333.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.01199, allocations: 7.984 kB / 333.5 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.01215, allocations: 220.6 kB / 333.7 MB, free: 6.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01215, allocations: 4 kB / 333.7 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.262e-05/0.01224, allocations: 27.92 kB / 333.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01224, allocations: 4 kB / 333.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.01225, allocations: 8 kB / 333.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.01225, allocations: 0 / 333.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01226, allocations: 0 / 333.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002448/0.0125, allocations: 258.2 kB / 334 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/0.01258, allocations: 59.66 kB / 334.1 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.01261, allocations: 4 kB / 334.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.053e-05/0.01266, allocations: 8 kB / 334.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.01271, allocations: 11.98 kB / 334.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.01272, allocations: 8 kB / 334.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001844/0.01291, allocations: 263 kB / 334.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01291, allocations: 0 / 334.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00025/0.01316, allocations: 43.92 kB / 334.4 MB, free: 5.562 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.001269/0.01443, allocations: 1.236 MB / 335.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.01465, allocations: 115.8 kB / 335.7 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.01465, allocations: 0 / 335.7 MB, free: 4.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.218e-05/0.01471, allocations: 31.97 kB / 335.8 MB, free: 4.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.01507, allocations: 116.9 kB / 335.9 MB, free: 4.184 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.01709, allocations: 2.477 MB / 338.4 MB, free: 1.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.0172, allocations: 157.5 kB / 338.5 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.887e-05/0.01728, allocations: 29.94 kB / 338.6 MB, free: 1.371 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.01738, allocations: 88.47 kB / 338.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of SimCode: time 1.202e-06/0.01738, allocations: 0 / 338.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.03853, allocations: 7.278 MB / 345.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.778/6.816, allocations: 3.938 kB / 345.9 MB, free: 10.05 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78784e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable upSample1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable sum.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable sum.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.60492070671171]