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.001327/0.001327, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001439/0.001439, allocations: 208.9 kB / 23.73 MB, free: 4.523 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.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001593/0.001593, allocations: 43.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2582, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003546/0.2617, allocations: 1.949 MB / 433 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.2639, allocations: 1.282 MB / 434.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.2641, allocations: 7.938 kB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.2644, allocations: 63.61 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003829/0.2648, allocations: 151.3 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007733/0.2655, allocations: 278.2 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.2658, allocations: 219.4 kB / 435 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.2659, allocations: 34.27 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.2661, allocations: 103.6 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.2662, allocations: 111.5 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.2663, allocations: 16 kB / 435.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.2664, allocations: 83.94 kB / 435.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.862e-05/0.2665, allocations: 67.75 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.276e-05/0.2666, allocations: 67.55 kB / 435.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.267, allocations: 306.7 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.267, allocations: 0 / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.267, allocations: 0 / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.267, allocations: 0 / 435.8 MB, free: 1.934 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.0008693/0.2679, allocations: 0.5216 MB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2679, allocations: 8.031 kB / 436.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.123e-05/0.268, allocations: 46.73 kB / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.275e-05/0.268, allocations: 36.75 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.2684, allocations: 266.4 kB / 436.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.2685, allocations: 12.38 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.2685, allocations: 15.94 kB / 436.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005902/0.2691, allocations: 333.8 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2691, allocations: 4 kB / 437 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.2691, allocations: 4 kB / 437 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2691, allocations: 4 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.2693, allocations: 75.88 kB / 437.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.2698, allocations: 365.5 kB / 437.5 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.2702, allocations: 188.2 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.2704, allocations: 86.48 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.2704, allocations: 11.97 kB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.2706, allocations: 75.39 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.793e-06/0.2706, allocations: 3.938 kB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005451/0.2711, allocations: 257.3 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.2712, allocations: 152.5 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.2716, allocations: 364.1 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.2716, allocations: 25.7 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2718, allocations: 132.6 kB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.2718, allocations: 39.77 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.2719, allocations: 57.88 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.272, allocations: 338.8 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.515e-05/0.2721, allocations: 40.44 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.2724, allocations: 237.4 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.2726, allocations: 215.3 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2726, allocations: 0 / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003884/0.273, allocations: 237.4 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.2731, allocations: 15.92 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.2731, allocations: 7.938 kB / 439.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.2731, allocations: 8 kB / 439.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.2732, allocations: 35.92 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.2732, allocations: 4 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.2734, allocations: 19.88 kB / 439.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.2734, allocations: 15.98 kB / 440 MB, free: 13.36 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.0001769/0.2736, allocations: 176 kB / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/0.2738, allocations: 141.8 kB / 440.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.274, allocations: 131.8 kB / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.274, allocations: 4 kB / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.274, allocations: 0 / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.2741, allocations: 8.031 kB / 440.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.2743, allocations: 228.8 kB / 440.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2743, allocations: 0 / 440.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.2744, allocations: 35.92 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2744, allocations: 4 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.2744, allocations: 8 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.2744, allocations: 3.984 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2744, allocations: 4 kB / 440.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.2748, allocations: 254.5 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.2749, allocations: 55.7 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.275, allocations: 8 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.2751, allocations: 8 kB / 441 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.2751, allocations: 19.86 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.2751, allocations: 7.984 kB / 441 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.2754, allocations: 263 kB / 441.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2754, allocations: 0 / 441.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.2757, allocations: 44 kB / 441.3 MB, free: 11.89 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.002336/0.278, allocations: 1.24 MB / 442.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.2784, allocations: 156.3 kB / 442.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2784, allocations: 0 / 442.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.474e-05/0.2784, allocations: 31.92 kB / 442.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.2789, allocations: 123.4 kB / 442.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.2821, allocations: 2.736 MB / 445.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.2822, allocations: 161.3 kB / 445.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.685e-05/0.2823, allocations: 38.94 kB / 445.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.2825, allocations: 87.41 kB / 445.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2825, allocations: 0 / 445.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03365/0.3161, allocations: 7.324 MB / 453.2 MB, free: 20 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.33, allocations: 6.688 kB / 453.2 MB, free: 16 kB / 350.1 MB " [Timeout remaining time 649] (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: 13.93684125400614]