Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 213.9 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.15/3.15, allocations: 0.4892 GB / 0.7943 GB, free: 35.6 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 63.81 kB / 1.153 GB, free: 25.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3351, allocations: 176.1 MB / 1.325 GB, free: 2.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002204/0.3373, allocations: 0.8468 MB / 1.326 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002754/0.3376, allocations: 87.7 kB / 1.326 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.024e-05/0.3376, allocations: 7.938 kB / 1.326 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.3377, allocations: 23.78 kB / 1.326 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.3379, allocations: 15.86 kB / 1.326 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.398e-05/0.338, allocations: 43.97 kB / 1.326 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.3383, allocations: 255.4 kB / 1.326 GB, free: 1.168 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.3386, allocations: 171.1 kB / 1.326 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3387, allocations: 131.5 kB / 1.327 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.3389, allocations: 155.2 kB / 1.327 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.3389, allocations: 32 kB / 1.327 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.04e-05/0.339, allocations: 32 kB / 1.327 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.113e-05/0.3391, allocations: 83.78 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.3392, allocations: 127.3 kB / 1.327 GB, free: 456 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.3397, allocations: 462.1 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3397, allocations: 4 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3397, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.3397, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 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.0007007/0.3404, allocations: 0.5324 MB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3404, allocations: 8.031 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.863e-05/0.3405, allocations: 70.72 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.664e-05/0.3406, allocations: 44.66 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.3411, allocations: 271.1 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/0.3411, allocations: 37.02 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.3412, allocations: 32.38 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.3418, allocations: 408.2 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3418, allocations: 3.938 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.3418, allocations: 12 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3419, allocations: 8 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.3424, allocations: 303.4 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3438, allocations: 0.9657 MB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.344, allocations: 89.16 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.621e-05/0.3441, allocations: 45.78 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.3441, allocations: 0 / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.3442, allocations: 42.5 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.3442, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003993/0.3446, allocations: 161.4 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/0.3446, allocations: 85.05 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006211/0.3452, allocations: 0.5169 MB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3453, allocations: 25.7 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.3454, allocations: 207.6 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.3454, allocations: 11.95 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-05/0.3455, allocations: 61.64 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3457, allocations: 338.8 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.3458, allocations: 75.86 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.3459, allocations: 89.66 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.3461, allocations: 117.5 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3461, allocations: 0 / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003195/0.3464, allocations: 205.4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3465, allocations: 4 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3465, allocations: 4 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3465, allocations: 3.938 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.3466, allocations: 31.92 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3466, allocations: 0 / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.825e-05/0.3467, allocations: 43.62 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.3467, allocations: 8 kB / 1.332 GB, free: 10.94 MB / 1.029 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.0002134/0.3469, allocations: 208.1 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.347, allocations: 27.81 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.3472, allocations: 118.1 kB / 1.332 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3472, allocations: 7.938 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3472, allocations: 3.938 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3473, allocations: 64 / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006185/0.3479, allocations: 0.6127 MB / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3479, allocations: 0 / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.326e-05/0.3479, allocations: 4 kB / 1.333 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3479, allocations: 0 / 1.333 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3479, allocations: 4 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3479, allocations: 3.938 kB / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3479, allocations: 0 / 1.333 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.3481, allocations: 131.4 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3482, allocations: 55.86 kB / 1.333 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.3482, allocations: 0 / 1.333 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.55e-05/0.3483, allocations: 4 kB / 1.333 GB, free: 9.664 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.3483, allocations: 11.92 kB / 1.333 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.3483, allocations: 192 / 1.333 GB, free: 9.652 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004629/0.3488, allocations: 391 kB / 1.334 GB, free: 9.273 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3488, allocations: 7.875 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002476/0.349, allocations: 39.95 kB / 1.334 GB, free: 9.227 MB / 1.029 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.0004884/0.3495, allocations: 0.6655 MB / 1.334 GB, free: 8.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002186/0.3497, allocations: 111.8 kB / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.3497, allocations: 0 / 1.334 GB, free: 8.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.071e-05/0.3498, allocations: 12 kB / 1.334 GB, free: 8.398 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.35, allocations: 36.14 kB / 1.335 GB, free: 8.367 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003502/0.3535, allocations: 2.904 MB / 1.337 GB, free: 5.359 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.3537, allocations: 187.6 kB / 1.338 GB, free: 5.152 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001262/0.3538, allocations: 58.92 kB / 1.338 GB, free: 5.098 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.354, allocations: 99.34 kB / 1.338 GB, free: 5 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.354, allocations: 0 / 1.338 GB, free: 5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.3883, allocations: 6.336 MB / 1.344 GB, free: 14.82 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.78, allocations: 9.016 kB / 1.344 GB, free: 14.81 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.384430648759007]