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.0008718/0.0008718, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001055/0.001055, allocations: 153 kB / 23.93 MB, free: 0.6289 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 0.8809/0.8809, allocations: 173.4 MB / 200.5 MB, free: 9.418 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045e-05/1.164e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002173/0.002185, allocations: 1.926 MB / 320.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.003457, allocations: 1.137 MB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.003574, allocations: 7.938 kB / 321.5 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002813/0.003856, allocations: 71.53 kB / 321.6 MB, free: 3.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.004085, allocations: 107.5 kB / 321.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.004652, allocations: 302.7 kB / 322 MB, free: 2.781 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.004866, allocations: 219.4 kB / 322.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.957e-05/0.004966, allocations: 29.94 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.005095, allocations: 131.6 kB / 322.3 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.005222, allocations: 95.75 kB / 322.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.005244, allocations: 12 kB / 322.4 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.005374, allocations: 75.88 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.847e-05/0.005442, allocations: 63.77 kB / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.983e-05/0.005502, allocations: 59.77 kB / 322.6 MB, free: 2.105 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.005802, allocations: 295 kB / 322.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.005804, allocations: 0 / 322.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.005805, allocations: 0 / 322.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.005809, allocations: 0 / 322.9 MB, free: 1.816 MB / 282.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.0006416/0.006451, allocations: 0.5094 MB / 323.4 MB, free: 1.273 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.006491, allocations: 12.92 kB / 323.5 MB, free: 1.262 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.006531, allocations: 50.73 kB / 323.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.183e-05/0.006583, allocations: 28.75 kB / 323.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.006855, allocations: 245.8 kB / 323.8 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.006872, allocations: 16.31 kB / 323.8 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.006888, allocations: 12.38 kB / 323.8 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004275/0.007316, allocations: 344.5 kB / 324.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.007325, allocations: 3.938 kB / 324.1 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.007338, allocations: 8 kB / 324.1 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.007343, allocations: 4 kB / 324.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.007464, allocations: 71.95 kB / 324.2 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004168/0.007881, allocations: 369.4 kB / 324.6 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.008127, allocations: 184 kB / 324.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.581e-05/0.008223, allocations: 86.53 kB / 324.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.008246, allocations: 11.92 kB / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.008367, allocations: 79.38 kB / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.008368, allocations: 0 / 324.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003766/0.008745, allocations: 261.3 kB / 325.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.008815, allocations: 144.5 kB / 325.3 MB, free: 15.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.009056, allocations: 344.2 kB / 325.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.009075, allocations: 33.7 kB / 325.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.009144, allocations: 128.6 kB / 325.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.009171, allocations: 31.98 kB / 325.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.009215, allocations: 41.64 kB / 325.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.009303, allocations: 342.7 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.815e-05/0.009351, allocations: 31.98 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.009452, allocations: 149.6 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.009562, allocations: 117.3 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.009564, allocations: 0 / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001764/0.009741, allocations: 153.4 kB / 326.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.009752, allocations: 4.156 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.009756, allocations: 7.938 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.009767, allocations: 4 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.432e-05/0.009832, allocations: 23.92 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.009839, allocations: 4.312 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.571e-05/0.009885, allocations: 7.953 kB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.009893, allocations: 4 kB / 326.7 MB, free: 13.69 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.0001098/0.01, allocations: 177.6 kB / 326.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.01016, allocations: 133.5 kB / 327 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.01033, allocations: 135.4 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.01033, allocations: 4 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.01034, allocations: 0 / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01034, allocations: 0 / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.01049, allocations: 224.5 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.01049, allocations: 0 / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.01057, allocations: 32.39 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.01057, allocations: 4 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.01058, allocations: 7.984 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.01058, allocations: 4 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01059, allocations: 0 / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.01081, allocations: 265.1 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.01088, allocations: 51.72 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.0109, allocations: 8 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.285e-05/0.01095, allocations: 12.05 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.01099, allocations: 11.98 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.011, allocations: 4 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002262/0.01123, allocations: 255 kB / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01123, allocations: 0 / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002092/0.01144, allocations: 40 kB / 328.1 MB, free: 12.27 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.001342/0.01278, allocations: 1.238 MB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.01299, allocations: 119.8 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.01299, allocations: 0 / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.926e-05/0.01304, allocations: 27.98 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.01337, allocations: 121.2 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.01537, allocations: 2.451 MB / 332 MB, free: 8.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.01547, allocations: 161.7 kB / 332.2 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.969e-05/0.01554, allocations: 29.95 kB / 332.2 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.834e-05/0.01563, allocations: 76.47 kB / 332.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01563, allocations: 0 / 332.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02096/0.03659, allocations: 7.179 MB / 339.5 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.052/7.089, allocations: 7.156 kB / 339.5 MB, free: 0.9336 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! Error: Could not read variable sum.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv. Warning: Get data of variable sum.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.927178673446178]