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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00512/0.00512, allocations: 101.2 kB / 15.73 MB, free: 5.988 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.001521/0.001521, allocations: 188 kB / 16.67 MB, free: 5.914 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.941/2.941, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 63.89 kB / 1.083 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2793, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.00215/0.2815, allocations: 0.8668 MB / 1.242 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000289/0.2818, allocations: 87.7 kB / 1.242 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.975e-05/0.2819, allocations: 7.938 kB / 1.242 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.282, allocations: 23.73 kB / 1.242 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2821, allocations: 15.86 kB / 1.242 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 8.538e-05/0.2822, allocations: 39.97 kB / 1.242 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.2825, allocations: 255.5 kB / 1.243 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004241/0.283, allocations: 294.3 kB / 1.243 GB, free: 8.645 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.2831, allocations: 131.5 kB / 1.243 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.2833, allocations: 143.3 kB / 1.243 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.2834, allocations: 32 kB / 1.243 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.969e-05/0.2835, allocations: 36 kB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.986e-05/0.2836, allocations: 91.7 kB / 1.243 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.2837, allocations: 151.1 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004812/0.2842, allocations: 458 kB / 1.244 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2842, allocations: 3.984 kB / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2842, allocations: 0 / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.187e-05/0.2842, allocations: 0 / 1.244 GB, free: 7.617 MB / 0.9981 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.0007797/0.285, allocations: 0.6038 MB / 1.245 GB, free: 6.957 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2851, allocations: 12.03 kB / 1.245 GB, free: 6.945 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.359e-05/0.2852, allocations: 78.66 kB / 1.245 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.2852, allocations: 40.7 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.2857, allocations: 332.2 kB / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.2858, allocations: 41.02 kB / 1.245 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.2858, allocations: 28.38 kB / 1.245 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006539/0.2865, allocations: 400.2 kB / 1.245 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.2865, allocations: 3.938 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.2865, allocations: 23.94 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2865, allocations: 8 kB / 1.246 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005092/0.2871, allocations: 303.5 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.2885, allocations: 1.046 MB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.2887, allocations: 101.1 kB / 1.247 GB, free: 4.438 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.822e-05/0.2888, allocations: 41.8 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.887e-05/0.2888, allocations: 0 / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.2889, allocations: 30.56 kB / 1.247 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.021e-06/0.2889, allocations: 0 / 1.247 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003546/0.2892, allocations: 181.2 kB / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.2893, allocations: 77.11 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006124/0.2899, allocations: 0.5092 MB / 1.248 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.2899, allocations: 29.69 kB / 1.248 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.2901, allocations: 203.8 kB / 1.248 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.2901, allocations: 15.88 kB / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.2902, allocations: 53.66 kB / 1.248 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2904, allocations: 350.8 kB / 1.248 GB, free: 2.891 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2905, allocations: 63.95 kB / 1.248 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.2907, allocations: 90.75 kB / 1.248 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.2909, allocations: 113.6 kB / 1.249 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2909, allocations: 0 / 1.249 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003442/0.2912, allocations: 213.2 kB / 1.249 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2912, allocations: 8 kB / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2913, allocations: 3.938 kB / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.2913, allocations: 3.938 kB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.2914, allocations: 27.98 kB / 1.249 GB, free: 2.359 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2914, allocations: 0 / 1.249 GB, free: 2.359 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.247e-05/0.2915, allocations: 35.73 kB / 1.249 GB, free: 2.324 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.2915, allocations: 12 kB / 1.249 GB, free: 2.312 MB / 0.9981 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.0002162/0.2918, allocations: 207.9 kB / 1.249 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.311e-05/0.2918, allocations: 31.77 kB / 1.249 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.2921, allocations: 118.4 kB / 1.249 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2921, allocations: 3.938 kB / 1.249 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2921, allocations: 4.062 kB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.2921, allocations: 3.984 kB / 1.249 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006354/0.2927, allocations: 0.6603 MB / 1.25 GB, free: 1.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.2928, allocations: 3.984 kB / 1.25 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.2928, allocations: 4 kB / 1.25 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2928, allocations: 4.125 kB / 1.25 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.2928, allocations: 4 kB / 1.25 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2928, allocations: 0 / 1.25 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2928, allocations: 0 / 1.25 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001569/0.293, allocations: 139.3 kB / 1.25 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.2931, allocations: 124.9 kB / 1.25 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.2931, allocations: 0 / 1.25 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.704e-05/0.2932, allocations: 4 kB / 1.25 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.2932, allocations: 7.984 kB / 1.25 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.2932, allocations: 0 / 1.25 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004719/0.2937, allocations: 391 kB / 1.251 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2937, allocations: 0 / 1.251 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002551/0.294, allocations: 43.89 kB / 1.251 GB, free: 460 kB / 0.9981 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.4556/0.7496, allocations: 0.6761 MB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.7499, allocations: 107 kB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.7499, allocations: 0.6562 kB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.75, allocations: 16.08 kB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.7503, allocations: 32.42 kB / 1.251 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.7534, allocations: 2.907 MB / 1.254 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.7536, allocations: 0.7877 MB / 1.255 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001231/0.7537, allocations: 58.56 kB / 1.255 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.7538, allocations: 96.64 kB / 1.255 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.7538, allocations: 0 / 1.255 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.7821, allocations: 5.673 MB / 1.261 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.702/8.484, allocations: 11.83 kB / 1.261 GB, free: 11.96 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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