Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal,fileNamePrefix="Buildings_10_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.001585/0.001585, allocations: 108 kB / 15.61 MB, free: 152 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.002726/0.002726, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.472/2.472, allocations: 437 MB / 0.7104 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 67.89 kB / 0.8694 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6297/0.6318, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal): time 0.002265/0.6341, allocations: 0.8673 MB / 1.018 GB, free: 1.645 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.6356, allocations: 1.296 MB / 1.02 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.61e-05/0.6357, allocations: 4 kB / 1.02 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.6358, allocations: 19.8 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.596e-05/0.6359, allocations: 35.66 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007635/0.6366, allocations: 260.3 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.637, allocations: 339.4 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.6372, allocations: 61.44 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.6374, allocations: 123.8 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.6376, allocations: 123.5 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.6376, allocations: 28 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.622e-05/0.6377, allocations: 47.98 kB / 1.021 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.027e-05/0.6378, allocations: 39.86 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.6379, allocations: 123.4 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.6382, allocations: 333.2 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.6382, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6382, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.6382, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 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.0005967/0.6388, allocations: 0.537 MB / 1.022 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.6389, allocations: 8.031 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.6389, allocations: 46.73 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.547e-05/0.639, allocations: 28.66 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.6396, allocations: 307.9 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.6396, allocations: 16.38 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.6397, allocations: 20.38 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.6399, allocations: 142.9 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.6399, allocations: 0 / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.6399, allocations: 8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.6399, allocations: 4 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.64, allocations: 71.89 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006608/0.6407, allocations: 0.7545 MB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.792e-05/0.6408, allocations: 57.25 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.855e-05/0.6409, allocations: 25.77 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.981e-06/0.6409, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.641, allocations: 105 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.641, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0002554/0.6413, allocations: 125.4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.6413, allocations: 81.11 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.6415, allocations: 208.7 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.6415, allocations: 41.69 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.982e-05/0.6416, allocations: 139.8 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.6417, allocations: 15.73 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.6418, allocations: 69.67 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.874e-05/0.6419, allocations: 326.8 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.642, allocations: 67.95 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.6421, allocations: 116.8 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.6424, allocations: 194.1 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.6424, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004335/0.6428, allocations: 292.6 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.295e-05/0.6429, allocations: 67.39 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.6429, allocations: 4 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.6429, allocations: 0 / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.47e-05/0.6429, allocations: 12 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.643, allocations: 16.06 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.6433, allocations: 47.94 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.6433, allocations: 19.98 kB / 1.025 GB, free: 10.52 MB / 0.7794 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.0001216/0.6435, allocations: 151.7 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.6435, allocations: 11.81 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.6435, allocations: 24.92 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.6435, allocations: 3.984 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.6435, allocations: 0 / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.6435, allocations: 0 / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.6437, allocations: 241.5 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.6437, allocations: 0 / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.436e-05/0.6437, allocations: 7.938 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6438, allocations: 4 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.6438, allocations: 3.984 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.6438, allocations: 0 / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6438, allocations: 8 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.6439, allocations: 129.7 kB / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.644, allocations: 88.92 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.644, allocations: 4 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.027e-05/0.644, allocations: 3.984 kB / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.727e-05/0.6441, allocations: 8 kB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.6441, allocations: 8 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.933e-05/0.6442, allocations: 144.5 kB / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6442, allocations: 7.938 kB / 1.026 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002521/0.6445, allocations: 43.84 kB / 1.026 GB, free: 9.555 MB / 0.7794 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.0003885/0.6449, allocations: 0.6756 MB / 1.026 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003255/0.6452, allocations: 262.6 kB / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.6452, allocations: 0 / 1.027 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.48e-05/0.6453, allocations: 39.91 kB / 1.027 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.6455, allocations: 42 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.6477, allocations: 2.143 MB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.6479, allocations: 0.7357 MB / 1.029 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.181e-05/0.648, allocations: 17.55 kB / 1.03 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.518e-05/0.6481, allocations: 59.41 kB / 1.03 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6481, allocations: 0 / 1.03 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.6662, allocations: 4.174 MB / 1.034 GB, free: 1.344 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.047/7.713, allocations: 4.453 kB / 1.034 GB, free: 1.34 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractSignal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractSignal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches