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.001661/0.001661, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002032/0.002033, allocations: 192.4 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.188/2.188, allocations: 222.9 MB / 239.9 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.874/2.874, allocations: 461.9 MB / 0.7344 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 62.16 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3346, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal): time 0.002317/0.337, allocations: 0.9257 MB / 1.053 GB, free: 7.73 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001851/0.3389, allocations: 1.307 MB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.684e-05/0.339, allocations: 4 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.3391, allocations: 15.86 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.496e-05/0.3392, allocations: 23.84 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000763/0.34, allocations: 233.5 kB / 1.055 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.3404, allocations: 339.4 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.3406, allocations: 61.45 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.3408, allocations: 131.6 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002708/0.341, allocations: 123.6 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/0.3411, allocations: 32 kB / 1.056 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.317e-05/0.3412, allocations: 39.98 kB / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6e-05/0.3413, allocations: 47.84 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.3414, allocations: 119.4 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003564/0.3418, allocations: 331.2 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3418, allocations: 4 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3418, allocations: 0 / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.307e-06/0.3418, allocations: 0 / 1.056 GB, free: 4.938 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.0007284/0.3426, allocations: 0.5371 MB / 1.057 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3426, allocations: 8.625 kB / 1.057 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.43e-05/0.3427, allocations: 46.73 kB / 1.057 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.31e-05/0.3428, allocations: 28.66 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.3434, allocations: 292 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.3435, allocations: 12.38 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.3435, allocations: 28.31 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.3438, allocations: 146.9 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.3438, allocations: 3.938 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.3438, allocations: 11.92 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3438, allocations: 7.984 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.344, allocations: 63.91 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008056/0.3448, allocations: 0.7546 MB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.778e-05/0.3449, allocations: 57.2 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.674e-05/0.3449, allocations: 21.78 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.3449, allocations: 0 / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.3452, allocations: 112.9 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3452, allocations: 0 / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0002921/0.3455, allocations: 125.4 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.3455, allocations: 77.11 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.3458, allocations: 215.6 kB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.3458, allocations: 33.7 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3459, allocations: 143.8 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.3459, allocations: 15.8 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3461, allocations: 65.69 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3462, allocations: 334.8 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.3463, allocations: 59.97 kB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.3465, allocations: 114.8 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.3468, allocations: 198.2 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3468, allocations: 0 / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004948/0.3473, allocations: 300.6 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.043e-05/0.3473, allocations: 63.39 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3474, allocations: 4 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3474, allocations: 4 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.714e-05/0.3474, allocations: 15.92 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3475, allocations: 0 / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.3478, allocations: 63.97 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.3478, allocations: 12 kB / 1.06 GB, free: 0.6328 MB / 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.0001569/0.348, allocations: 150.8 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.348, allocations: 11.91 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.778e-05/0.3481, allocations: 12.94 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3481, allocations: 3.938 kB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3481, allocations: 4 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3481, allocations: 3.984 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.3483, allocations: 237.4 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3483, allocations: 4 kB / 1.06 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.902e-05/0.3484, allocations: 15.86 kB / 1.06 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3484, allocations: 0 / 1.06 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.3484, allocations: 4 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3484, allocations: 4 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3484, allocations: 0 / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.3487, allocations: 138.2 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.3487, allocations: 85.02 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.3487, allocations: 3.984 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.622e-05/0.3488, allocations: 4 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.3488, allocations: 11.92 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.3488, allocations: 7.984 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001197/0.349, allocations: 145.5 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.349, allocations: 0 / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002817/0.3493, allocations: 43.84 kB / 1.061 GB, free: 15.67 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.0005427/0.3498, allocations: 0.6795 MB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004121/0.3502, allocations: 262.9 kB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3502, allocations: 0 / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.983e-05/0.3503, allocations: 35.92 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.3506, allocations: 32.12 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.3532, allocations: 2.201 MB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3536, allocations: 0.7241 MB / 1.065 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.194e-05/0.3537, allocations: 29.47 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.412e-05/0.3538, allocations: 59.36 kB / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.3538, allocations: 0 / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.3705, allocations: 4.069 MB / 1.069 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.3708, allocations: 230.9 kB / 1.069 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.46, allocations: 1.875 kB / 1.069 GB, free: 7.305 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