Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_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.001468/0.001468, 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.001371/0.001371, allocations: 195.8 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.263/1.263, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.482/2.482, allocations: 469.8 MB / 0.7424 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 62.28 kB / 0.9087 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2353, allocations: 159.2 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001927/0.2373, allocations: 0.8718 MB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002264/0.2375, allocations: 83.7 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.429e-05/0.2376, allocations: 7.938 kB / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.507e-05/0.2377, allocations: 19.8 kB / 1.065 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.2378, allocations: 15.86 kB / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 8.009e-05/0.2379, allocations: 39.95 kB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.2382, allocations: 255.4 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.2385, allocations: 298.3 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.2387, allocations: 123.6 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.2388, allocations: 147.3 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.2389, allocations: 32 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.147e-05/0.2389, allocations: 32 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.692e-05/0.239, allocations: 91.7 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.2391, allocations: 155.1 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.2395, allocations: 438.6 kB / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2395, allocations: 0 / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2395, allocations: 0 / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.2395, allocations: 0 / 1.067 GB, free: 11.65 MB / 0.8262 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.0006216/0.2401, allocations: 0.5928 MB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.2402, allocations: 8.031 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.215e-05/0.2403, allocations: 78.72 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.022e-05/0.2403, allocations: 40.47 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.2407, allocations: 336 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/0.2407, allocations: 33.02 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.2408, allocations: 36.38 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.2413, allocations: 400.2 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2414, allocations: 3.938 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.2414, allocations: 12 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.2414, allocations: 8 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004352/0.2418, allocations: 299.6 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2431, allocations: 1.049 MB / 1.069 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2432, allocations: 97.16 kB / 1.069 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/0.2433, allocations: 53.72 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.2433, allocations: 0 / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.2434, allocations: 34.56 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 8.81e-07/0.2434, allocations: 4 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0002933/0.2437, allocations: 169.4 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.2437, allocations: 81.11 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005141/0.2442, allocations: 0.5091 MB / 1.07 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2443, allocations: 29.7 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.2444, allocations: 203.4 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.2444, allocations: 19.8 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-05/0.2445, allocations: 49.7 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2447, allocations: 350.8 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.2448, allocations: 67.95 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.2449, allocations: 83.08 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.245, allocations: 113.6 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2451, allocations: 4 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002916/0.2454, allocations: 213 kB / 1.071 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.2454, allocations: 8 kB / 1.071 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.2454, allocations: 0 / 1.071 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2454, allocations: 7.938 kB / 1.071 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.2455, allocations: 35.86 kB / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.2455, allocations: 0 / 1.071 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.751e-05/0.2456, allocations: 39.53 kB / 1.071 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.2456, allocations: 4 kB / 1.071 GB, free: 6.363 MB / 0.8262 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.000184/0.2458, allocations: 196 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.546e-05/0.2459, allocations: 35.61 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.2461, allocations: 118 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2461, allocations: 3.938 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.2461, allocations: 0 / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2461, allocations: 0 / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.2466, allocations: 0.6604 MB / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2466, allocations: 0 / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.228e-05/0.2467, allocations: 7.984 kB / 1.072 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2467, allocations: 0 / 1.072 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.2467, allocations: 8 kB / 1.072 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2467, allocations: 0 / 1.072 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2467, allocations: 3.938 kB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.2468, allocations: 135.3 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.185e-05/0.2469, allocations: 120.7 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.247, allocations: 0 / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.992e-05/0.247, allocations: 8 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.941e-05/0.2471, allocations: 4 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.2471, allocations: 0 / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003947/0.2475, allocations: 395 kB / 1.073 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.793e-06/0.2475, allocations: 0 / 1.073 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002151/0.2477, allocations: 39.84 kB / 1.073 GB, free: 4.512 MB / 0.8262 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.0004086/0.2481, allocations: 0.67 MB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001893/0.2483, allocations: 119.8 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2483, allocations: 0 / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.388e-05/0.2483, allocations: 12 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.2485, allocations: 25.56 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.2515, allocations: 2.921 MB / 1.077 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.2519, allocations: 0.7871 MB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.665e-05/0.252, allocations: 62.86 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2521, allocations: 95.41 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.2521, allocations: 4 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.392/2.644, allocations: 5.562 MB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/16.57, allocations: 14.06 kB / 1.083 GB, free: 10.22 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches