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.001234/0.001234, allocations: 116 kB / 17.78 MB, free: 5.289 MB / 14.72 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.001373/0.001373, allocations: 190.9 kB / 20.73 MB, free: 2.352 MB / 14.72 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 1.462/1.462, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001512/0.001512, allocations: 39.92 kB / 365.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1013, allocations: 52.15 MB / 417.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003412/0.1047, allocations: 1.976 MB / 419.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1068, allocations: 1.208 MB / 421 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.1069, allocations: 7.938 kB / 421 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003179/0.1073, allocations: 75.59 kB / 421 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002764/0.1075, allocations: 103.6 kB / 421.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008357/0.1084, allocations: 296.5 kB / 421.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.1087, allocations: 219.4 kB / 421.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1088, allocations: 33.67 kB / 421.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1089, allocations: 99.61 kB / 421.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.1091, allocations: 111.6 kB / 421.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.1091, allocations: 15.94 kB / 421.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.1093, allocations: 67.97 kB / 422 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.082e-05/0.1094, allocations: 63.75 kB / 422 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.1095, allocations: 95.34 kB / 422.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.1099, allocations: 298.7 kB / 422.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1099, allocations: 0 / 422.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1099, allocations: 0 / 422.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1099, allocations: 0 / 422.4 MB, free: 8.051 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.0008721/0.1108, allocations: 0.597 MB / 423 MB, free: 7.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1108, allocations: 8.031 kB / 423 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.1109, allocations: 42.75 kB / 423.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.1109, allocations: 32.75 kB / 423.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.1113, allocations: 311.7 kB / 423.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.1113, allocations: 8.375 kB / 423.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/0.1114, allocations: 23.94 kB / 423.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005908/0.112, allocations: 323.8 kB / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.112, allocations: 0 / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.112, allocations: 0 / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.112, allocations: 4 kB / 423.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.1122, allocations: 71.89 kB / 423.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005905/0.1128, allocations: 418.3 kB / 424.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000413/0.1132, allocations: 180 kB / 424.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.1134, allocations: 90.48 kB / 424.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.1134, allocations: 16.19 kB / 424.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.1136, allocations: 71.39 kB / 424.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.1136, allocations: 0 / 424.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006227/0.1142, allocations: 257.6 kB / 424.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.1143, allocations: 174.2 kB / 425 MB, free: 5.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.1147, allocations: 354.8 kB / 425.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.1147, allocations: 29.7 kB / 425.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.1149, allocations: 132.6 kB / 425.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.1149, allocations: 39.81 kB / 425.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.089e-05/0.115, allocations: 49.94 kB / 425.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1152, allocations: 338.8 kB / 425.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1153, allocations: 44.44 kB / 426 MB, free: 4.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1155, allocations: 187.6 kB / 426.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.1158, allocations: 211.2 kB / 426.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1158, allocations: 256 / 426.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004145/0.1162, allocations: 245.1 kB / 426.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1162, allocations: 8 kB / 426.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1162, allocations: 4 kB / 426.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.1162, allocations: 4 kB / 426.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.1164, allocations: 47.78 kB / 426.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1164, allocations: 8 kB / 426.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.1165, allocations: 20.39 kB / 426.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.1165, allocations: 12 kB / 426.7 MB, free: 3.328 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.00018/0.1167, allocations: 180.6 kB / 426.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.117, allocations: 133.5 kB / 427 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.283e-05/0.117, allocations: 33.73 kB / 427 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.117, allocations: 7.938 kB / 427 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1171, allocations: 0 / 427 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1171, allocations: 3.984 kB / 427 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.1173, allocations: 265.5 kB / 427.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1173, allocations: 0 / 427.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1175, allocations: 31.92 kB / 427.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.1175, allocations: 0 / 427.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.1175, allocations: 11.98 kB / 427.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1175, allocations: 3.938 kB / 427.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1175, allocations: 0 / 427.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000415/0.1179, allocations: 250.5 kB / 427.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.118, allocations: 132.9 kB / 427.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.1181, allocations: 11.94 kB / 427.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.1182, allocations: 3.984 kB / 427.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.1182, allocations: 11.94 kB / 427.8 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.1182, allocations: 12.05 kB / 427.8 MB, free: 2.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.1185, allocations: 249.9 kB / 428 MB, free: 1.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1185, allocations: 0 / 428 MB, free: 1.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003269/0.1188, allocations: 47.94 kB / 428.1 MB, free: 1.863 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.002434/0.1213, allocations: 1.188 MB / 429.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003708/0.1216, allocations: 163.6 kB / 429.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1216, allocations: 0 / 429.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.1217, allocations: 27.98 kB / 429.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.1223, allocations: 131 kB / 429.6 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.1255, allocations: 2.703 MB / 432.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.1259, allocations: 0.7675 MB / 433 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.126, allocations: 34.52 kB / 433.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.1262, allocations: 75.41 kB / 433.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1262, allocations: 0 / 433.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0305/0.1567, allocations: 6.385 MB / 439.5 MB, free: 6.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.284/8.44, allocations: 11.72 kB / 439.5 MB, free: 6.398 MB / 366.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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: 11.336454631295055]