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.001281/0.001281, allocations: 112 kB / 20.43 MB, free: 1.309 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.001384/0.001384, allocations: 189.3 kB / 23.72 MB, free: 4.559 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.466/1.466, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001549/0.001549, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2952, allocations: 52.2 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003539/0.2988, allocations: 1.974 MB / 424.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3008, allocations: 1.227 MB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.301, allocations: 7.938 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.3013, allocations: 71.59 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.3015, allocations: 91.59 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008506/0.3024, allocations: 320.2 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.3027, allocations: 211.4 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.3028, allocations: 25.95 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.303, allocations: 103.6 kB / 426.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.3031, allocations: 111.5 kB / 426.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.3032, allocations: 12 kB / 426.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.3033, allocations: 71.95 kB / 426.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.3034, allocations: 75.73 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3036, allocations: 103.3 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.304, allocations: 287.2 kB / 427.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.304, allocations: 0 / 427.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.304, allocations: 0 / 427.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.304, allocations: 0 / 427.3 MB, free: 9.914 MB / 334.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.0009151/0.3049, allocations: 0.5178 MB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3049, allocations: 12.03 kB / 427.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.305, allocations: 42.75 kB / 427.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.489e-05/0.305, allocations: 32.73 kB / 427.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.3054, allocations: 254.5 kB / 428.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.3055, allocations: 12.38 kB / 428.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.3055, allocations: 19.88 kB / 428.2 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005944/0.3061, allocations: 318.8 kB / 428.5 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3061, allocations: 7.938 kB / 428.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.3061, allocations: 8 kB / 428.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3061, allocations: 4 kB / 428.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.3063, allocations: 67.89 kB / 428.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.3069, allocations: 385.4 kB / 429 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.3073, allocations: 188 kB / 429.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.3074, allocations: 90.53 kB / 429.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.3075, allocations: 0 / 429.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.3076, allocations: 87.31 kB / 429.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.3077, allocations: 0 / 429.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.000592/0.3082, allocations: 249.3 kB / 429.6 MB, free: 7.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.3084, allocations: 166.4 kB / 429.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.3088, allocations: 352.1 kB / 430.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.3088, allocations: 29.7 kB / 430.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.3089, allocations: 144.5 kB / 430.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.309, allocations: 27.84 kB / 430.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.704e-05/0.3091, allocations: 49.94 kB / 430.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3092, allocations: 338.8 kB / 430.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3093, allocations: 44.44 kB / 430.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.3096, allocations: 190.1 kB / 430.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.3099, allocations: 215.2 kB / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3099, allocations: 0 / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004176/0.3103, allocations: 233.5 kB / 431.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3103, allocations: 12.06 kB / 431.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3103, allocations: 7.984 kB / 431.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.3103, allocations: 8 kB / 431.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.3105, allocations: 43.8 kB / 431.4 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3105, allocations: 4.688 kB / 431.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.3106, allocations: 19.89 kB / 431.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.3107, allocations: 19.98 kB / 431.4 MB, free: 5.398 MB / 334.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.0001968/0.3109, allocations: 188 kB / 431.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.3111, allocations: 145.4 kB / 431.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.3114, allocations: 123.4 kB / 431.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.3114, allocations: 7.938 kB / 431.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3114, allocations: 0 / 431.9 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3114, allocations: 7.984 kB / 431.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.3116, allocations: 228.6 kB / 432.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3116, allocations: 0 / 432.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.3118, allocations: 31.92 kB / 432.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3118, allocations: 0 / 432.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3118, allocations: 15.98 kB / 432.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.3118, allocations: 3.938 kB / 432.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3118, allocations: 4 kB / 432.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000414/0.3122, allocations: 238.5 kB / 432.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3123, allocations: 51.72 kB / 432.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3124, allocations: 8 kB / 432.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.69e-05/0.3125, allocations: 12 kB / 432.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.3125, allocations: 15.92 kB / 432.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3125, allocations: 7.984 kB / 432.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002704/0.3128, allocations: 247.1 kB / 432.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3128, allocations: 0 / 432.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3131, allocations: 51.92 kB / 432.8 MB, free: 3.953 MB / 334.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.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 (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.00245/0.3156, allocations: 1.185 MB / 434 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003644/0.3159, allocations: 160.5 kB / 434.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3159, allocations: 0 / 434.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.785e-05/0.316, allocations: 31.92 kB / 434.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.3165, allocations: 116.3 kB / 434.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/0.3199, allocations: 2.696 MB / 437 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.3203, allocations: 0.7753 MB / 437.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.3204, allocations: 38.48 kB / 437.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.3205, allocations: 79.41 kB / 437.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3205, allocations: 0 / 437.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/0.3556, allocations: 6.645 MB / 444.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.46, allocations: 10.16 kB / 444.5 MB, free: 8.211 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.21127568600059]