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.007891/0.007891, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001796/0.001796, allocations: 191 kB / 16.67 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.528/2.528, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 64.05 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8259/0.8273, allocations: 157.4 MB / 1.207 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal): time 0.002267/0.8296, allocations: 0.876 MB / 1.208 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001788/0.8314, allocations: 1.291 MB / 1.209 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.611e-05/0.8315, allocations: 4 kB / 1.209 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.8317, allocations: 19.8 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.702e-05/0.8318, allocations: 35.72 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007933/0.8326, allocations: 262.5 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004539/0.833, allocations: 343.4 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.8332, allocations: 59.69 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.8334, allocations: 135.7 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.8336, allocations: 99.69 kB / 1.21 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.8337, allocations: 32 kB / 1.21 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.8338, allocations: 59.91 kB / 1.21 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.475e-05/0.8339, allocations: 39.86 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.8341, allocations: 123.5 kB / 1.211 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000436/0.8345, allocations: 354.9 kB / 1.211 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8345, allocations: 3.938 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8345, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.8346, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 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.0008829/0.8354, allocations: 0.5371 MB / 1.211 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.8355, allocations: 12.03 kB / 1.211 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.989e-05/0.8356, allocations: 50.73 kB / 1.211 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.8357, allocations: 20.75 kB / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007258/0.8364, allocations: 303.9 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.8364, allocations: 12.38 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/0.8365, allocations: 20.38 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.8368, allocations: 149.3 kB / 1.212 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.8368, allocations: 0 / 1.212 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.8368, allocations: 11.98 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.8368, allocations: 4 kB / 1.212 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.837, allocations: 63.91 kB / 1.212 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009428/0.8379, allocations: 0.7622 MB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.838, allocations: 57.23 kB / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.519e-05/0.8381, allocations: 25.77 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.8381, allocations: 4 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.8384, allocations: 101 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.8384, allocations: 0 / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0003103/0.8387, allocations: 125.4 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.8388, allocations: 81.09 kB / 1.213 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.839, allocations: 215.7 kB / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.839, allocations: 33.7 kB / 1.213 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.8391, allocations: 144.1 kB / 1.214 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.8392, allocations: 19.75 kB / 1.214 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.8393, allocations: 65.67 kB / 1.214 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.8394, allocations: 330.8 kB / 1.214 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.8396, allocations: 67.89 kB / 1.214 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.8398, allocations: 136.5 kB / 1.214 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.84, allocations: 194.2 kB / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.84, allocations: 0 / 1.214 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004769/0.8405, allocations: 292.6 kB / 1.215 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.8406, allocations: 67.39 kB / 1.215 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.8406, allocations: 4 kB / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.8406, allocations: 0 / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.666e-05/0.8407, allocations: 16.17 kB / 1.215 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.8407, allocations: 7.938 kB / 1.215 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004024/0.8411, allocations: 67.83 kB / 1.215 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.8411, allocations: 12 kB / 1.215 GB, free: 5.602 MB / 0.9356 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.0001795/0.8413, allocations: 154.6 kB / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.8414, allocations: 15.81 kB / 1.215 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.8414, allocations: 16.94 kB / 1.215 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.8414, allocations: 0 / 1.215 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.8414, allocations: 0 / 1.215 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8414, allocations: 480 / 1.215 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.8417, allocations: 237.5 kB / 1.215 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.8417, allocations: 4 kB / 1.215 GB, free: 5.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.004e-05/0.8417, allocations: 11.92 kB / 1.215 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.8417, allocations: 0 / 1.215 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.8417, allocations: 0 / 1.215 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.8417, allocations: 12 kB / 1.215 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.8417, allocations: 0 / 1.215 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.8419, allocations: 133.7 kB / 1.215 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.842, allocations: 92.92 kB / 1.215 GB, free: 4.836 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.842, allocations: 7.922 kB / 1.215 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.082e-05/0.8421, allocations: 4 kB / 1.215 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.8421, allocations: 4 kB / 1.215 GB, free: 4.82 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.8421, allocations: 15.92 kB / 1.215 GB, free: 4.805 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001126/0.8423, allocations: 145.5 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.292e-06/0.8423, allocations: 0 / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002887/0.8426, allocations: 55.78 kB / 1.216 GB, free: 4.609 MB / 0.9356 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.0005014/0.8431, allocations: 0.6795 MB / 1.216 GB, free: 3.895 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003781/0.8435, allocations: 254.6 kB / 1.217 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.8435, allocations: 0 / 1.217 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.008e-05/0.8435, allocations: 31.98 kB / 1.217 GB, free: 3.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.8438, allocations: 44.48 kB / 1.217 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.8465, allocations: 2.16 MB / 1.219 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.8469, allocations: 0.728 MB / 1.219 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.532e-05/0.847, allocations: 21.53 kB / 1.219 GB, free: 492 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.557e-05/0.8471, allocations: 55.42 kB / 1.22 GB, free: 436 kB / 0.9356 GB Notification: Performance of SimCode: time 5.91e-07/0.8471, allocations: 0 / 1.22 GB, free: 436 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.8691, allocations: 4.382 MB / 1.224 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.679, allocations: 13.84 kB / 1.224 GB, free: 12.21 MB / 0.9512 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