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.001241/0.001241, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00146/0.00146, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.411/1.411, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.001524/0.001524, allocations: 55.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09847, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004001/0.1025, allocations: 1.985 MB / 428.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.1051, allocations: 1.356 MB / 429.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.1052, allocations: 7.938 kB / 429.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.1056, allocations: 71.59 kB / 429.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005101/0.1061, allocations: 139.4 kB / 429.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009746/0.1071, allocations: 270.9 kB / 430.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.1075, allocations: 227.4 kB / 430.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.1077, allocations: 32.3 kB / 430.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.1079, allocations: 95.62 kB / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.1081, allocations: 107.5 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.1082, allocations: 20 kB / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.1084, allocations: 79.88 kB / 430.7 MB, free: 388 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.1086, allocations: 71.75 kB / 430.8 MB, free: 316 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.1087, allocations: 95.34 kB / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1923/0.3011, allocations: 297.9 kB / 431.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3011, allocations: 0 / 431.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3011, allocations: 0 / 431.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3011, allocations: 0.6094 kB / 431.1 MB, free: 8.012 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.0009002/0.302, allocations: 0.5975 MB / 431.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.302, allocations: 11.75 kB / 431.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.3021, allocations: 44.03 kB / 431.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.006e-05/0.3021, allocations: 31.47 kB / 431.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.3025, allocations: 316.7 kB / 432.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.3025, allocations: 14.81 kB / 432.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.3025, allocations: 13.58 kB / 432.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000554/0.3031, allocations: 327.1 kB / 432.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3031, allocations: 0.9688 kB / 432.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3031, allocations: 9.469 kB / 432.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.3031, allocations: 2.906 kB / 432.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.3033, allocations: 69.59 kB / 432.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.3037, allocations: 425.9 kB / 433 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.3041, allocations: 189.7 kB / 433.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3042, allocations: 88.28 kB / 433.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.3042, allocations: 4.953 kB / 433.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.3044, allocations: 89.14 kB / 433.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.764e-06/0.3044, allocations: 0 / 433.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.000526/0.3049, allocations: 252.1 kB / 433.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.305, allocations: 173.8 kB / 433.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.3053, allocations: 354.4 kB / 434.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.3053, allocations: 32.48 kB / 434.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.254e-05/0.3054, allocations: 129 kB / 434.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.3054, allocations: 35.91 kB / 434.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.898e-05/0.3055, allocations: 55.77 kB / 434.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.562e-05/0.3056, allocations: 341.8 kB / 434.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.3056, allocations: 44.12 kB / 434.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3058, allocations: 190.5 kB / 434.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.306, allocations: 211.7 kB / 435.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.306, allocations: 1.031 kB / 435.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003595/0.3064, allocations: 235.4 kB / 435.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3064, allocations: 7.281 kB / 435.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3064, allocations: 3.656 kB / 435.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.3064, allocations: 5.594 kB / 435.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.3066, allocations: 43.2 kB / 435.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.3066, allocations: 11.69 kB / 435.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.3067, allocations: 23.62 kB / 435.4 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.3067, allocations: 10.06 kB / 435.4 MB, free: 5.523 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.0001312/0.3068, allocations: 181.1 kB / 435.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.307, allocations: 146.6 kB / 435.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.749e-05/0.3071, allocations: 35.2 kB / 435.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3071, allocations: 3.438 kB / 435.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.3071, allocations: 3.938 kB / 435.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3071, allocations: 3.938 kB / 435.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.3073, allocations: 268.5 kB / 436.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3073, allocations: 2.656 kB / 436.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.3074, allocations: 27.78 kB / 436.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3074, allocations: 5.859 kB / 436.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3075, allocations: 8.219 kB / 436.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3075, allocations: 1.188 kB / 436.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3075, allocations: 5.703 kB / 436.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003595/0.3078, allocations: 241.4 kB / 436.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.969e-05/0.3079, allocations: 128.1 kB / 436.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.308, allocations: 11.69 kB / 436.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.361e-05/0.308, allocations: 4.922 kB / 436.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.3081, allocations: 13.25 kB / 436.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.3081, allocations: 12.05 kB / 436.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.3084, allocations: 257.7 kB / 436.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3084, allocations: 0 / 436.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.3087, allocations: 51.16 kB / 436.8 MB, free: 4.848 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.002097/0.3108, allocations: 1.194 MB / 438 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003589/0.3111, allocations: 150.2 kB / 438.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3111, allocations: 0 / 438.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.575e-05/0.3112, allocations: 29.34 kB / 438.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/0.3118, allocations: 113.6 kB / 438.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.3153, allocations: 2.731 MB / 441 MB, free: 2.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.3156, allocations: 0.7753 MB / 441.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.3157, allocations: 39.19 kB / 441.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3158, allocations: 85.05 kB / 441.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3158, allocations: 0 / 441.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3451, allocations: 6.472 MB / 448.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/8.365, allocations: 4.938 kB / 448.4 MB, free: 0.9258 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.740325859049335]