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.001594/0.001594, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001906/0.001906, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.07 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: "" <> 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 0.001562/0.001562, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.09681, allocations: 53.32 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003735/0.1005, allocations: 1.983 MB / 428.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.1033, allocations: 1.364 MB / 429.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.1036, allocations: 7.938 kB / 429.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003986/0.104, allocations: 71.58 kB / 429.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004328/0.1044, allocations: 139.4 kB / 429.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008384/0.1052, allocations: 271 kB / 430.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.1056, allocations: 223.4 kB / 430.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1057, allocations: 32.3 kB / 430.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1058, allocations: 107.5 kB / 430.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.106, allocations: 107.5 kB / 430.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.106, allocations: 12 kB / 430.6 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.1062, allocations: 79.89 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.656e-05/0.1063, allocations: 71.73 kB / 430.7 MB, free: 320 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1064, allocations: 95.36 kB / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2102/0.3166, allocations: 300.6 kB / 431.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3166, allocations: 0.6094 kB / 431.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3166, allocations: 0 / 431.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.3166, allocations: 0 / 431.1 MB, free: 8.004 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.0009668/0.3176, allocations: 0.5969 MB / 431.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3176, allocations: 9.062 kB / 431.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.3177, allocations: 48.61 kB / 431.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.117e-05/0.3178, allocations: 32.09 kB / 431.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.3181, allocations: 314.3 kB / 432.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.3182, allocations: 12.56 kB / 432.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.3182, allocations: 12.75 kB / 432.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006482/0.3188, allocations: 330.9 kB / 432.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3188, allocations: 1.094 kB / 432.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.3189, allocations: 6.656 kB / 432.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3189, allocations: 3.188 kB / 432.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.3191, allocations: 69.78 kB / 432.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.3198, allocations: 425.3 kB / 433 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004824/0.3203, allocations: 188.5 kB / 433.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.3205, allocations: 84.48 kB / 433.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.3205, allocations: 10.77 kB / 433.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.3208, allocations: 81.36 kB / 433.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.045e-06/0.3208, allocations: 0 / 433.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009257/0.3217, allocations: 252.9 kB / 433.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.793e-05/0.3218, allocations: 176.4 kB / 433.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005129/0.3223, allocations: 355.4 kB / 434.1 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.3224, allocations: 31.3 kB / 434.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-05/0.3225, allocations: 131.5 kB / 434.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.3225, allocations: 33.12 kB / 434.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3226, allocations: 58.5 kB / 434.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.3227, allocations: 340.2 kB / 434.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.3228, allocations: 47.8 kB / 434.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.323, allocations: 186 kB / 434.9 MB, free: 5.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003285/0.3234, allocations: 209 kB / 435.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3234, allocations: 2.812 kB / 435.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006175/0.324, allocations: 232.4 kB / 435.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.324, allocations: 7.562 kB / 435.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.324, allocations: 4.25 kB / 435.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.3241, allocations: 7.953 kB / 435.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.3243, allocations: 45.05 kB / 435.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/0.3243, allocations: 9.281 kB / 435.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.3245, allocations: 21.14 kB / 435.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.3246, allocations: 10.19 kB / 435.4 MB, free: 5.512 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.0002326/0.3248, allocations: 184.1 kB / 435.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.3251, allocations: 143.2 kB / 435.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3252, allocations: 38.7 kB / 435.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3252, allocations: 3.281 kB / 435.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3252, allocations: 5.031 kB / 435.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3252, allocations: 3.109 kB / 435.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.3256, allocations: 276.5 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3256, allocations: 1.438 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.3258, allocations: 28.95 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.3258, allocations: 1.5 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.3258, allocations: 8.781 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.3258, allocations: 1.281 kB / 436.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3258, allocations: 5.094 kB / 436.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.3264, allocations: 249.9 kB / 436.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.3266, allocations: 124.3 kB / 436.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.3266, allocations: 8.281 kB / 436.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.3268, allocations: 9.906 kB / 436.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.3269, allocations: 6.344 kB / 436.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.3269, allocations: 15.42 kB / 436.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003902/0.3273, allocations: 255 kB / 436.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3273, allocations: 0 / 436.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005886/0.3279, allocations: 55.86 kB / 436.8 MB, free: 4.836 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.003299/0.3312, allocations: 1.195 MB / 438 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005994/0.3318, allocations: 145 kB / 438.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3318, allocations: 1.188 kB / 438.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.3319, allocations: 27.28 kB / 438.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008832/0.3328, allocations: 122.8 kB / 438.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.3375, allocations: 2.725 MB / 441 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.3378, allocations: 0.7754 MB / 441.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.3381, allocations: 37.48 kB / 441.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.3383, allocations: 83.22 kB / 441.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of SimCode: time 1.783e-06/0.3383, allocations: 0 / 441.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04288/0.3812, allocations: 6.477 MB / 448.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.673, allocations: 6.25 kB / 448.4 MB, free: 0.918 MB / 350.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.csv","/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] "Error: Could not read variable upSample1.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable sum.y in file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable sum.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.261263437991147]