Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.IntegerExtractSignal,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal",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.001051/0.001051, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009951/0.0009951, allocations: 195.7 kB / 16.53 MB, free: 6.391 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.629/2.629, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 66.77 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3079, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal): time 0.002812/0.3107, allocations: 0.8744 MB / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002149/0.3129, allocations: 1.299 MB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.3132, allocations: 0 / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.3133, allocations: 27.73 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.3134, allocations: 23.73 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.3145, allocations: 257.9 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.315, allocations: 347.4 kB / 1.056 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.3152, allocations: 53.48 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.3155, allocations: 135.7 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004128/0.3159, allocations: 111.6 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.3161, allocations: 31.94 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.3162, allocations: 47.97 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-05/0.3163, allocations: 43.78 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.3166, allocations: 115.5 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.3171, allocations: 327.2 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.3171, allocations: 0 / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.395e-06/0.3171, allocations: 8 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.305e-05/0.3171, allocations: 0 / 1.056 GB, free: 4.578 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0009801/0.3181, allocations: 0.5344 MB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3182, allocations: 12.62 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.466e-05/0.3182, allocations: 46.73 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.599e-05/0.3183, allocations: 24.66 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000724/0.3191, allocations: 300 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.3191, allocations: 20.38 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.3192, allocations: 16.38 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.3194, allocations: 154.8 kB / 1.058 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3194, allocations: 0 / 1.058 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.3195, allocations: 4 kB / 1.058 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3195, allocations: 4 kB / 1.058 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.3196, allocations: 67.84 kB / 1.058 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009194/0.3205, allocations: 0.7551 MB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.728e-05/0.3207, allocations: 57.2 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.3207, allocations: 21.72 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.3207, allocations: 4 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.3209, allocations: 109 kB / 1.059 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.3209, allocations: 0 / 1.059 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003673/0.3213, allocations: 129.4 kB / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.3214, allocations: 77.11 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3216, allocations: 219.6 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.3217, allocations: 33.7 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3218, allocations: 139.8 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.3219, allocations: 15.8 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.322, allocations: 57.69 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3222, allocations: 334.8 kB / 1.06 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.3223, allocations: 63.97 kB / 1.06 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.3225, allocations: 122.8 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.3228, allocations: 198.1 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3228, allocations: 4 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004936/0.3233, allocations: 288.7 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.618e-05/0.3234, allocations: 67.41 kB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3234, allocations: 3.938 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3234, allocations: 4 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.3235, allocations: 19.92 kB / 1.06 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3235, allocations: 4 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.3238, allocations: 59.97 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.3239, allocations: 12 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition4,intPul.booPul.y,$PRE.intPul.booPul.y,extIntSig1.y[4],$whenCondition1,$whenCondition2,intPul1.booPul.y,$PRE.intPul1.booPul.y,extIntSig1.y[5],conInt3.y,conInt2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001537/0.324, allocations: 154.8 kB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.3241, allocations: 11.91 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.777e-05/0.3241, allocations: 12.94 kB / 1.06 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.3241, allocations: 4 kB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.3241, allocations: 4 kB / 1.06 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.3241, allocations: 7.922 kB / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.3244, allocations: 233.5 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3244, allocations: 3.984 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.3244, allocations: 4 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.3244, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.3244, allocations: 4 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3245, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3245, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.3247, allocations: 145.6 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-05/0.3247, allocations: 89 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.3247, allocations: 0 / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.142e-05/0.3248, allocations: 4 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.3248, allocations: 3.984 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.3248, allocations: 8 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001303/0.325, allocations: 145.5 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of sort global known variables: time 7.31e-07/0.325, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000296/0.3253, allocations: 51.84 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition3,$whenCondition4,extIntSig1.y[4],intPul.booPul.y,$whenCondition1,$whenCondition2,extIntSig1.y[5],intPul1.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0005501/0.3258, allocations: 0.6729 MB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003939/0.3262, allocations: 267.3 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3263, allocations: 0 / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.043e-05/0.3263, allocations: 31.92 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.3266, allocations: 40.19 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.3293, allocations: 2.173 MB / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3297, allocations: 0.728 MB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.641e-05/0.3298, allocations: 21.53 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.299e-05/0.3299, allocations: 55.42 kB / 1.065 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3299, allocations: 4 kB / 1.065 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.3536, allocations: 4.16 MB / 1.069 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/7.595, allocations: 10.47 kB / 1.069 GB, free: 7.082 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches