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.0009696/0.0009696, allocations: 91.67 kB / 20.68 MB, free: 3.871 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.0008599/0.0008599, allocations: 166 kB / 23.95 MB, free: 0.5977 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.9397/0.9397, allocations: 177.1 MB / 204.2 MB, free: 5.723 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.823e-06/1.823e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.561e-05/2.743e-05, allocations: 8.953 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00309/0.003118, allocations: 1.95 MB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.005017, allocations: 1.285 MB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.005194, allocations: 7.938 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.005534, allocations: 75.53 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003927/0.005927, allocations: 143.2 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.006629, allocations: 278.4 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002929/0.006922, allocations: 231.3 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.007053, allocations: 32.58 kB / 328.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.00722, allocations: 127.6 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.007369, allocations: 95.75 kB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.007395, allocations: 12 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.007571, allocations: 71.89 kB / 328.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.007643, allocations: 71.75 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.325e-05/0.007707, allocations: 55.78 kB / 329 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.008078, allocations: 311 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.008082, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.008084, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.008089, 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.000747/0.008836, allocations: 0.5178 MB / 329.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.008875, allocations: 8.031 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.008913, allocations: 42.75 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.008966, allocations: 32.75 kB / 329.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.009269, allocations: 257.7 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.009291, allocations: 12.38 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.009309, allocations: 12.38 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.009796, allocations: 358.7 kB / 330.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.009805, allocations: 0 / 330.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.009819, allocations: 4 kB / 330.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.009827, allocations: 7.984 kB / 330.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.009948, allocations: 71.94 kB / 330.6 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.01042, allocations: 369.4 kB / 330.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.01068, allocations: 187.9 kB / 331.1 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.993e-05/0.01078, allocations: 90.42 kB / 331.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.01081, allocations: 7.984 kB / 331.2 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.01095, allocations: 79.38 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.024e-06/0.01095, allocations: 0 / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004481/0.0114, allocations: 257.3 kB / 331.6 MB, free: 8.727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.397e-05/0.01148, allocations: 140.5 kB / 331.7 MB, free: 8.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.01175, allocations: 360.1 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.01177, allocations: 33.7 kB / 332.1 MB, free: 8.156 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.01184, allocations: 140.5 kB / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.01187, allocations: 28.06 kB / 332.2 MB, free: 7.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.01192, allocations: 37.7 kB / 332.3 MB, free: 7.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.01203, allocations: 342.8 kB / 332.6 MB, free: 7.602 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.748e-05/0.01209, allocations: 27.98 kB / 332.6 MB, free: 7.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.0122, allocations: 148.6 kB / 332.8 MB, free: 7.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.01233, allocations: 113.3 kB / 332.9 MB, free: 7.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.01234, allocations: 4 kB / 332.9 MB, free: 7.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000203/0.01254, allocations: 153.3 kB / 333.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.01256, allocations: 8 kB / 333.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.01257, allocations: 0 / 333.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.01259, allocations: 4 kB / 333.1 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.079e-05/0.01268, allocations: 19.92 kB / 333.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.01269, allocations: 4.156 kB / 333.1 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.202e-05/0.01275, allocations: 11.94 kB / 333.1 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.01276, allocations: 8 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.0001549/0.01291, allocations: 173.6 kB / 333.3 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.01308, allocations: 137.8 kB / 333.4 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.01332, allocations: 131.5 kB / 333.5 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.01333, allocations: 4 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.01333, allocations: 0 / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.01334, allocations: 96 / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.01355, allocations: 228.5 kB / 333.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.01355, allocations: 7.938 kB / 333.8 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.01366, allocations: 31.91 kB / 333.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.01367, allocations: 4 kB / 333.8 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.01368, allocations: 8 kB / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.01369, allocations: 0 / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.01369, allocations: 0 / 333.8 MB, free: 6.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.01397, allocations: 255.3 kB / 334.1 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/0.01406, allocations: 59.7 kB / 334.1 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.01409, allocations: 8.062 kB / 334.1 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.528e-05/0.01415, allocations: 11.98 kB / 334.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.089e-05/0.01422, allocations: 11.98 kB / 334.2 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.01424, allocations: 8 kB / 334.2 MB, free: 5.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001995/0.01444, allocations: 259 kB / 334.4 MB, free: 5.652 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01444, allocations: 0 / 334.4 MB, free: 5.652 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002677/0.01471, allocations: 47.92 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.001657/0.01636, allocations: 1.231 MB / 335.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002423/0.01661, allocations: 119.8 kB / 335.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.01661, allocations: 3.938 kB / 335.8 MB, free: 4.402 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.128e-05/0.01666, allocations: 27.98 kB / 335.8 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.01704, allocations: 116.8 kB / 336 MB, free: 4.262 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.01934, allocations: 2.47 MB / 338.4 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.01948, allocations: 169.4 kB / 338.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.01958, allocations: 30.31 kB / 338.6 MB, free: 1.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.0197, allocations: 84.47 kB / 338.7 MB, free: 1.367 MB / 298.7 MB Notification: Performance of SimCode: time 1.493e-06/0.0197, allocations: 4 kB / 338.7 MB, free: 1.363 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.04073, allocations: 7.288 MB / 346 MB, free: 10.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.26/7.301, allocations: 4 kB / 346 MB, free: 10.14 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 & 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/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] "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: 9.186507679522038]