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.001759/0.001759, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002111/0.002111, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.556/1.556, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001579/0.001579, allocations: 43.92 kB / 377.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2889, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003831/0.2928, allocations: 1.998 MB / 433.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.2953, allocations: 1.379 MB / 434.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.2955, allocations: 7.938 kB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003558/0.2958, allocations: 71.59 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003878/0.2962, allocations: 139.4 kB / 434.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008743/0.2971, allocations: 278.8 kB / 435 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.2974, allocations: 223.4 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.2976, allocations: 32.56 kB / 435.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.2977, allocations: 111.5 kB / 435.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.2979, allocations: 103.6 kB / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.2979, allocations: 16 kB / 435.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.2982, allocations: 91.81 kB / 435.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.962e-05/0.2983, allocations: 63.77 kB / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.2984, allocations: 103.3 kB / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.2988, allocations: 295.2 kB / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2988, allocations: 0 / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2988, allocations: 0 / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2988, allocations: 0 / 436 MB, free: 1.977 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.001032/0.2999, allocations: 0.5217 MB / 436.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2999, allocations: 16.02 kB / 436.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.552e-05/0.3, allocations: 46.75 kB / 436.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.922e-05/0.3, allocations: 28.75 kB / 436.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.3004, allocations: 262.4 kB / 436.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.3005, allocations: 12.38 kB / 436.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.3005, allocations: 15.94 kB / 436.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006621/0.3011, allocations: 317 kB / 437.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3012, allocations: 0 / 437.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.3012, allocations: 11.94 kB / 437.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3012, allocations: 4 kB / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3014, allocations: 67.95 kB / 437.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.302, allocations: 385.3 kB / 437.7 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.3024, allocations: 184 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.3026, allocations: 82.53 kB / 437.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.691e-05/0.3027, allocations: 16.2 kB / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.3029, allocations: 87.31 kB / 438 MB, free: 15.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/0.3029, allocations: 0 / 438 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005839/0.3034, allocations: 249.3 kB / 438.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/0.3036, allocations: 170.2 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.304, allocations: 368.4 kB / 438.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.3041, allocations: 29.7 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3042, allocations: 128.6 kB / 439 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.3042, allocations: 35.83 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.033e-05/0.3043, allocations: 61.81 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.3045, allocations: 342.8 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.857e-05/0.3046, allocations: 40.44 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.3048, allocations: 190.9 kB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.3051, allocations: 211.2 kB / 439.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3051, allocations: 0 / 439.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004743/0.3056, allocations: 237.5 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3056, allocations: 8 kB / 440.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.3056, allocations: 4 kB / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3056, allocations: 4 kB / 440.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.3058, allocations: 47.84 kB / 440.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.3058, allocations: 7.938 kB / 440.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.3059, allocations: 19.89 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3059, allocations: 16 kB / 440.2 MB, free: 13.44 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.000201/0.3061, allocations: 175.9 kB / 440.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002633/0.3064, allocations: 137.4 kB / 440.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003076/0.3067, allocations: 123.8 kB / 440.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3067, allocations: 11.94 kB / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3067, allocations: 0 / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3067, allocations: 0 / 440.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.307, allocations: 244.4 kB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.307, allocations: 0 / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.3071, allocations: 31.98 kB / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3071, allocations: 0 / 440.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.3072, allocations: 11.98 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.571e-05/0.3072, allocations: 4.328 kB / 440.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3072, allocations: 4 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003945/0.3076, allocations: 242.5 kB / 441.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.3077, allocations: 59.72 kB / 441.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.3077, allocations: 4 kB / 441.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-05/0.3078, allocations: 7.984 kB / 441.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.3079, allocations: 11.94 kB / 441.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3079, allocations: 11.98 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.3082, allocations: 255 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3082, allocations: 96 / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.3086, allocations: 55.88 kB / 441.5 MB, free: 11.98 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 (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.002544/0.3111, allocations: 1.197 MB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003846/0.3115, allocations: 153.3 kB / 442.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3115, allocations: 3.938 kB / 442.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.981e-05/0.3116, allocations: 27.98 kB / 442.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005965/0.3122, allocations: 124.5 kB / 443 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.3158, allocations: 2.733 MB / 445.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3162, allocations: 0.7714 MB / 446.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.3164, allocations: 38.75 kB / 446.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3165, allocations: 79.41 kB / 446.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3165, allocations: 0 / 446.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03901/0.3556, allocations: 6.758 MB / 453.4 MB, free: 96 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.57, allocations: 0 / 453.4 MB, free: 96 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.317989717997989]