Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",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.006209/0.006215, allocations: 102.6 kB / 15.73 MB, free: 6.027 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.001297/0.001297, allocations: 192.5 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.79/2.79, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.89 kB / 1.054 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3123, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.0025/0.3149, allocations: 0.8566 MB / 1.208 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003287/0.3152, allocations: 95.64 kB / 1.208 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.3154, allocations: 0 / 1.208 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.3155, allocations: 27.73 kB / 1.208 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.3157, allocations: 19.84 kB / 1.208 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.006e-05/0.3158, allocations: 39.97 kB / 1.208 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002829/0.3161, allocations: 255.4 kB / 1.209 GB, free: 8.895 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.3165, allocations: 290.3 kB / 1.209 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.3166, allocations: 139.4 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.3168, allocations: 139.3 kB / 1.209 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.3169, allocations: 32 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.636e-05/0.3169, allocations: 32 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.209e-05/0.317, allocations: 83.78 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.3172, allocations: 159.1 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.3177, allocations: 454.3 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3177, allocations: 0 / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.106e-06/0.3177, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.3177, allocations: 4 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0009074/0.3186, allocations: 0.5928 MB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3187, allocations: 12.62 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.528e-05/0.3188, allocations: 70.72 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.3188, allocations: 40.47 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.3193, allocations: 336.1 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.139e-05/0.3194, allocations: 36.95 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.3194, allocations: 36.38 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.32, allocations: 396.2 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3201, allocations: 3.938 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.3201, allocations: 16 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.3201, allocations: 8 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004767/0.3206, allocations: 303.5 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.322, allocations: 1.049 MB / 1.213 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.3222, allocations: 89.22 kB / 1.213 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.463e-05/0.3223, allocations: 45.78 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.3223, allocations: 3.938 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.3223, allocations: 42.56 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.3223, allocations: 0 / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003529/0.3227, allocations: 165.1 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.3228, allocations: 77.11 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005172/0.3233, allocations: 0.5091 MB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3233, allocations: 25.7 kB / 1.214 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.3235, allocations: 215.4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.3235, allocations: 11.91 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-05/0.3236, allocations: 53.59 kB / 1.214 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3237, allocations: 354.8 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.3238, allocations: 63.95 kB / 1.214 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.324, allocations: 83.58 kB / 1.214 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.3241, allocations: 125.5 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.3241, allocations: 0 / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003084/0.3245, allocations: 209.1 kB / 1.215 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3245, allocations: 8 kB / 1.215 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3245, allocations: 4 kB / 1.215 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3245, allocations: 3.938 kB / 1.215 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3247, allocations: 31.98 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.3247, allocations: 0 / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-05/0.3248, allocations: 39.47 kB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.3248, allocations: 8 kB / 1.215 GB, free: 2.297 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.0002157/0.325, allocations: 200 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-05/0.3251, allocations: 39.8 kB / 1.215 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.3254, allocations: 114 kB / 1.215 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3254, allocations: 7.875 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3254, allocations: 0 / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3254, allocations: 384 / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/0.3259, allocations: 0.6565 MB / 1.216 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.326, allocations: 0 / 1.216 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.522e-05/0.326, allocations: 11.92 kB / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.326, allocations: 0 / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.497e-06/0.326, allocations: 4 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.326, allocations: 0 / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.326, allocations: 0 / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.3262, allocations: 143.2 kB / 1.216 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.3263, allocations: 120.7 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.3263, allocations: 0 / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.204e-05/0.3264, allocations: 4 kB / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.3264, allocations: 8 kB / 1.216 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.3264, allocations: 0 / 1.216 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004115/0.3268, allocations: 391 kB / 1.216 GB, free: 496 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3268, allocations: 0 / 1.216 GB, free: 496 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002514/0.3271, allocations: 39.91 kB / 1.216 GB, free: 456 kB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004427/0.3276, allocations: 0.6731 MB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002125/0.3278, allocations: 103.9 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3278, allocations: 0 / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.017e-05/0.3278, allocations: 19.94 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.3281, allocations: 35.61 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.3314, allocations: 2.908 MB / 1.22 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.3318, allocations: 0.787 MB / 1.221 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001178/0.3319, allocations: 58.94 kB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3321, allocations: 95.41 kB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3321, allocations: 0 / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.355, allocations: 5.735 MB / 1.227 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.054, allocations: 11.73 kB / 1.227 GB, free: 6.016 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches