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.001282/0.001282, allocations: 120.8 kB / 17.74 MB, free: 5.352 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.001288/0.001288, allocations: 186.9 kB / 20.68 MB, free: 2.422 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.344/1.344, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 179] 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.001551/0.001551, allocations: 51.91 kB / 357.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09484/0.09641, allocations: 49.43 MB / 406.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003396/0.09984, allocations: 1.961 MB / 408.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1019, allocations: 1.188 MB / 410.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1021, allocations: 4 kB / 410.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.1024, allocations: 79.59 kB / 410.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.1027, allocations: 99.52 kB / 410.3 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.1035, allocations: 294 kB / 410.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002721/0.1038, allocations: 207.4 kB / 410.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.1039, allocations: 53.86 kB / 410.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1041, allocations: 95.61 kB / 410.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.1042, allocations: 107.5 kB / 411 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.1043, allocations: 20 kB / 411 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.1044, allocations: 67.95 kB / 411.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.1045, allocations: 59.83 kB / 411.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.1046, allocations: 111.2 kB / 411.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.105, allocations: 286.8 kB / 411.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.105, allocations: 4 kB / 411.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.105, allocations: 0 / 411.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.1051, allocations: 0 / 411.5 MB, free: 2.746 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.0008619/0.1059, allocations: 0.5853 MB / 412.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.106, allocations: 16.03 kB / 412.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.804e-05/0.106, allocations: 46.73 kB / 412.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.701e-05/0.1061, allocations: 36.75 kB / 412.2 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.1065, allocations: 311.7 kB / 412.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1065, allocations: 12.38 kB / 412.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.1066, allocations: 15.94 kB / 412.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.1071, allocations: 330 kB / 412.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1072, allocations: 0 / 412.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.1072, allocations: 4 kB / 412.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.1072, allocations: 4 kB / 412.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.1074, allocations: 71.89 kB / 412.9 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.1079, allocations: 414.3 kB / 413.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.1083, allocations: 192 kB / 413.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1085, allocations: 90.7 kB / 413.6 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.1085, allocations: 19.97 kB / 413.6 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.1087, allocations: 71.33 kB / 413.7 MB, free: 340 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.863e-06/0.1087, allocations: 0 / 413.7 MB, free: 340 kB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005374/0.1092, allocations: 249.6 kB / 414 MB, free: 84 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.1094, allocations: 174.2 kB / 414.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.1097, allocations: 358.8 kB / 414.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.1098, allocations: 29.7 kB / 414.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1099, allocations: 132.6 kB / 414.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.1099, allocations: 27.83 kB / 414.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.956e-05/0.11, allocations: 61.92 kB / 414.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1101, allocations: 330.8 kB / 415 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.1103, allocations: 44.45 kB / 415.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.1105, allocations: 188.5 kB / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.1108, allocations: 211.2 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1108, allocations: 4 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003841/0.1112, allocations: 237.7 kB / 415.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.1112, allocations: 4 kB / 415.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1112, allocations: 4 kB / 415.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.1112, allocations: 8 kB / 415.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1114, allocations: 47.86 kB / 415.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1114, allocations: 11.98 kB / 415.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.1115, allocations: 15.89 kB / 415.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.1115, allocations: 12 kB / 415.8 MB, free: 14.02 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.0001822/0.1117, allocations: 192.4 kB / 416 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.1119, allocations: 145.4 kB / 416.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.714e-05/0.112, allocations: 33.73 kB / 416.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.112, allocations: 7.938 kB / 416.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.112, allocations: 0 / 416.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1121, allocations: 0 / 416.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.1123, allocations: 269.5 kB / 416.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1123, allocations: 0 / 416.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.1124, allocations: 23.98 kB / 416.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1125, allocations: 8 kB / 416.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.1125, allocations: 7.984 kB / 416.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.241e-06/0.1125, allocations: 7.938 kB / 416.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1125, allocations: 0 / 416.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003906/0.1129, allocations: 243.8 kB / 416.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.113, allocations: 128.8 kB / 416.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.1131, allocations: 8 kB / 416.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.1132, allocations: 12.08 kB / 416.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.1132, allocations: 15.88 kB / 416.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.1133, allocations: 11.98 kB / 416.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.1135, allocations: 245.9 kB / 417.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1135, allocations: 0 / 417.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1138, allocations: 51.92 kB / 417.2 MB, free: 12.54 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.002245/0.1161, allocations: 1.198 MB / 418.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.1165, allocations: 155.9 kB / 418.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.1165, allocations: 4 kB / 418.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.327e-05/0.1166, allocations: 27.98 kB / 418.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.1171, allocations: 117 kB / 418.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.1201, allocations: 2.701 MB / 421.4 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.1205, allocations: 0.7636 MB / 422.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1206, allocations: 42.48 kB / 422.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1207, allocations: 79.41 kB / 422.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1208, allocations: 0 / 422.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.1494, allocations: 6.342 MB / 428.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.15/8.3, allocations: 4.688 kB / 428.6 MB, free: 1.16 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.847033159807324]