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.001829/0.001829, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002368/0.002368, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001552/0.001552, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2616, allocations: 53.37 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003663/0.2652, allocations: 1.956 MB / 433 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.2674, allocations: 1.278 MB / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.2676, allocations: 7.875 kB / 434.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002977/0.2679, allocations: 71.61 kB / 434.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003838/0.2682, allocations: 147.4 kB / 434.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007293/0.269, allocations: 270.2 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.2693, allocations: 215.4 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2694, allocations: 42.23 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.2696, allocations: 99.62 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.2697, allocations: 111.5 kB / 435.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.041e-05/0.2698, allocations: 12 kB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.2699, allocations: 75.94 kB / 435.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.131e-05/0.27, allocations: 63.77 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.721e-05/0.2701, allocations: 79.47 kB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004169/0.2706, allocations: 298.7 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2706, allocations: 4 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2706, allocations: 0 / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2706, allocations: 8 kB / 435.8 MB, free: 1.887 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.000876/0.2714, allocations: 0.5255 MB / 436.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.2715, allocations: 12.03 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.2715, allocations: 42.75 kB / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.556e-05/0.2716, allocations: 28.75 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.272, allocations: 262.4 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.272, allocations: 8.375 kB / 436.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.2721, allocations: 19.94 kB / 436.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006091/0.2727, allocations: 337.8 kB / 437 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.2727, allocations: 4 kB / 437 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.2727, allocations: 4 kB / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.2727, allocations: 4 kB / 437 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.2729, allocations: 71.89 kB / 437.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.2735, allocations: 369.4 kB / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.2739, allocations: 180 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.274, allocations: 86.55 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.274, allocations: 15.91 kB / 437.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.2742, allocations: 83.31 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.2742, allocations: 4 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005737/0.2748, allocations: 261.5 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.2749, allocations: 140.5 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.2753, allocations: 364.1 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.2753, allocations: 33.7 kB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2754, allocations: 132.6 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.2755, allocations: 27.78 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.587e-05/0.2755, allocations: 57.88 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2757, allocations: 342.8 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.2758, allocations: 44.44 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.2761, allocations: 241.4 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.2764, allocations: 207.2 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2764, allocations: 4 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004005/0.2768, allocations: 245 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.2768, allocations: 8 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2768, allocations: 4 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.2768, allocations: 4 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.277, allocations: 36.45 kB / 439.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.277, allocations: 12 kB / 439.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.2771, allocations: 23.86 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.2771, allocations: 12 kB / 440 MB, free: 13.31 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.0001804/0.2773, allocations: 175.7 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.2775, allocations: 145.4 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/0.2778, allocations: 127.9 kB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2778, allocations: 4 kB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2778, allocations: 4 kB / 440.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.2778, allocations: 3.938 kB / 440.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.278, allocations: 220.6 kB / 440.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.278, allocations: 8.25 kB / 440.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.2782, allocations: 31.92 kB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2782, allocations: 4 kB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.2782, allocations: 7.984 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.2782, allocations: 4 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2782, allocations: 0 / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.2786, allocations: 266 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.2787, allocations: 51.72 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.2788, allocations: 12 kB / 441 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.163e-05/0.2789, allocations: 4 kB / 441 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.464e-05/0.2789, allocations: 15.92 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.2789, allocations: 11.98 kB / 441 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002693/0.2792, allocations: 255 kB / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2792, allocations: 0 / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.2795, allocations: 48 kB / 441.3 MB, free: 11.86 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.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.002397/0.2819, allocations: 1.235 MB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003363/0.2823, allocations: 151.6 kB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2823, allocations: 3.938 kB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.792e-05/0.2823, allocations: 37.03 kB / 442.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.2828, allocations: 135 kB / 442.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.2861, allocations: 2.732 MB / 445.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.2863, allocations: 165.3 kB / 445.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2864, allocations: 34.66 kB / 445.8 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.2865, allocations: 79.69 kB / 445.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2865, allocations: 4 kB / 445.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03636/0.3229, allocations: 7.284 MB / 453.2 MB, free: 16 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.8, allocations: 6.688 kB / 453.2 MB, free: 12 kB / 350.1 MB " [Timeout remaining time 648] (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: 14.428355775773525]