Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) 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(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 195 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.489/2.489, allocations: 461.8 MB / 0.7342 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 68.8 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2705, allocations: 157.4 MB / 1.052 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor): time 0.00248/0.273, allocations: 1.198 MB / 1.053 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002241/0.2753, allocations: 1.583 MB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.2755, allocations: 4 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.2757, allocations: 15.8 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.2759, allocations: 47.62 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.2771, allocations: 455.8 kB / 1.055 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005369/0.2776, allocations: 0.5152 MB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002815/0.2779, allocations: 144.4 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002889/0.2782, allocations: 191.4 kB / 1.056 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.2785, allocations: 175.3 kB / 1.056 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.582e-05/0.2786, allocations: 28 kB / 1.056 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.2787, allocations: 47.98 kB / 1.056 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.263e-05/0.2788, allocations: 67.7 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.279, allocations: 199 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005376/0.2796, allocations: 0.5883 MB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2796, allocations: 0 / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2796, allocations: 0 / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.979e-05/0.2796, allocations: 0 / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001103/0.2807, allocations: 0.7357 MB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2808, allocations: 11.97 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.23e-05/0.2808, allocations: 58.72 kB / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.281, allocations: 52.47 kB / 1.058 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/0.282, allocations: 399.9 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.282, allocations: 28.8 kB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-05/0.2821, allocations: 36.38 kB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.2825, allocations: 255.5 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2825, allocations: 7.938 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.2825, allocations: 8 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2825, allocations: 4 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002259/0.2827, allocations: 157.7 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.2839, allocations: 0.8452 MB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.2843, allocations: 226.7 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.2845, allocations: 210.3 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.2845, allocations: 0 / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.2848, allocations: 255.8 kB / 1.06 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 1.273e-06/0.2848, allocations: 0 / 1.06 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.0006184/0.2855, allocations: 423 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.2855, allocations: 118.8 kB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.2858, allocations: 312.4 kB / 1.061 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.592e-05/0.2859, allocations: 45.7 kB / 1.061 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.286, allocations: 180.5 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.2861, allocations: 59.22 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.2863, allocations: 153.8 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.2864, allocations: 350.8 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000341/0.2868, allocations: 204.7 kB / 1.062 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.2872, allocations: 325 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.2878, allocations: 0.5311 MB / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2878, allocations: 0 / 1.063 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001008/0.2888, allocations: 0.7361 MB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.526e-05/0.2889, allocations: 124.5 kB / 1.064 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2889, allocations: 4 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2889, allocations: 7.984 kB / 1.064 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.2891, allocations: 60.27 kB / 1.064 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.2891, allocations: 15.92 kB / 1.064 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/0.2897, allocations: 127.5 kB / 1.064 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/0.2898, allocations: 75.91 kB / 1.064 GB, free: 11.41 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,conInt.y,conInt3.y,conInt2.y,extIndInt.u[4],extIndInt.u[1],extIndInt1.u[4],extIndInt2.u[4],extIndInt3.u[4],extIndInt4.u[4],extIndInt1.u[1],extIndInt2.u[1],extIndInt3.u[1],extIndInt4.u[1],intPul3.booPul.y,$PRE.intPul3.booPul.y,intPul3.y,intPul2.booPul.y,$PRE.intPul2.booPul.y,intPul2.y,intPul1.booPul.y,$PRE.intPul1.booPul.y,intPul.booPul.y,$PRE.intPul.booPul.y,extIndInt4.y,extIndInt4.u[3],extIndInt4.u[2],extIndInt3.y,extIndInt3.u[3],extIndInt3.u[2],extIndInt2.y,extIndInt2.u[3],extIndInt2.u[2],extIndInt1.y,extIndInt1.u[3],extIndInt1.u[2],extIndInt.u[3],extIndInt.u[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 4 * 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.0001927/0.29, allocations: 189.6 kB / 1.064 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.043e-05/0.2901, allocations: 27.62 kB / 1.064 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004767/0.2906, allocations: 373.6 kB / 1.065 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2906, allocations: 7.938 kB / 1.065 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2906, allocations: 4 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2906, allocations: 0 / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007816/0.2914, allocations: 0.7524 MB / 1.066 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2914, allocations: 3.938 kB / 1.066 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.2915, allocations: 39.91 kB / 1.066 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2915, allocations: 0 / 1.066 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2916, allocations: 8 kB / 1.066 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2916, allocations: 4 kB / 1.066 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2916, allocations: 0 / 1.066 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.292, allocations: 427 kB / 1.066 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.368e-05/0.2921, allocations: 112.5 kB / 1.066 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.2921, allocations: 11.98 kB / 1.066 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.2923, allocations: 11.94 kB / 1.066 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.2923, allocations: 23.97 kB / 1.066 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.2923, allocations: 15.98 kB / 1.066 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001805/0.2925, allocations: 211.1 kB / 1.066 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2925, allocations: 0 / 1.066 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003714/0.2929, allocations: 91.94 kB / 1.066 GB, free: 9.023 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (extIndInt.u[2],extIndInt.u[3],$cse1,$cse2,$cse3,$cse4,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,extIndInt1.u[2],extIndInt1.u[3],extIndInt1.y,extIndInt2.u[2],extIndInt2.u[3],extIndInt2.y,extIndInt3.u[2],extIndInt3.u[3],extIndInt3.y,extIndInt4.u[2],extIndInt4.u[3],extIndInt4.y,intPul.booPul.y,intPul1.booPul.y,intPul2.y,intPul2.booPul.y,intPul3.y,intPul3.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007414/0.2937, allocations: 0.9996 MB / 1.067 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007589/0.2944, allocations: 0.6694 MB / 1.068 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2944, allocations: 4 kB / 1.068 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.2946, allocations: 143.9 kB / 1.068 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004834/0.2951, allocations: 69.48 kB / 1.068 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.2994, allocations: 3.893 MB / 1.072 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.2997, allocations: 0.7807 MB / 1.073 GB, free: 2.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001659/0.2999, allocations: 75.2 kB / 1.073 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.3001, allocations: 115.4 kB / 1.073 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.3001, allocations: 4 kB / 1.073 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.3182, allocations: 7.995 MB / 1.081 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.3184, allocations: 219.9 kB / 1.081 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.145, allocations: 5.5 kB / 1.081 GB, free: 9.945 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches