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.001933/0.001933, allocations: 78.88 kB / 19.18 MB, free: 2.527 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.002352/0.002352, allocations: 162.3 kB / 22.46 MB, free: 5.359 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.527/1.527, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.054/3.054, allocations: 377.8 MB / 0.6221 GB, free: 12.58 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 0.9814 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.843e-05/3.057e-05, allocations: 2.281 kB / 0.9814 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002206/0.002237, allocations: 0.8427 MB / 0.9822 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003355/0.002572, allocations: 95.62 kB / 0.9823 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.743e-05/0.00267, allocations: 8 kB / 0.9823 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.002799, allocations: 15.8 kB / 0.9824 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.002948, allocations: 23.8 kB / 0.9824 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 9.605e-05/0.003044, allocations: 43.95 kB / 0.9824 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003294/0.003374, allocations: 255.4 kB / 0.9827 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.003694, allocations: 166.9 kB / 0.9828 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.00391, allocations: 191.6 kB / 0.983 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.004092, allocations: 119.7 kB / 0.9831 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.005e-05/0.004152, allocations: 35.94 kB / 0.9832 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.004202, allocations: 32 kB / 0.9832 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.004311, allocations: 95.67 kB / 0.9833 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.004423, allocations: 91.7 kB / 0.9834 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000496/0.004919, allocations: 470.4 kB / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.004924, allocations: 0 / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.52e-07/0.004925, allocations: 0 / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.004932, allocations: 0 / 0.9838 GB, free: 9.508 MB / 0.9356 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.000769/0.005701, allocations: 0.5285 MB / 0.9843 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.005741, allocations: 12.03 kB / 0.9843 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.005815, allocations: 36.7 kB / 0.9844 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.006268, allocations: 277.7 kB / 0.9846 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.947e-05/0.006327, allocations: 37.02 kB / 0.9847 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.006374, allocations: 36.38 kB / 0.9847 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/0.00701, allocations: 392.2 kB / 0.9851 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.007023, allocations: 192 / 0.9851 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.007058, allocations: 16.38 kB / 0.9851 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.007074, allocations: 8.375 kB / 0.9851 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.007563, allocations: 307.5 kB / 0.9854 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.008857, allocations: 0.8417 MB / 0.9862 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.00902, allocations: 85.22 kB / 0.9863 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.97e-05/0.009089, allocations: 45.78 kB / 0.9863 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.009112, allocations: 7.938 kB / 0.9864 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.009144, allocations: 34.56 kB / 0.9864 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.009146, allocations: 0 / 0.9864 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003499/0.009496, allocations: 157.4 kB / 0.9865 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.009549, allocations: 77.11 kB / 0.9866 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.009931, allocations: 349.5 kB / 0.9869 GB, free: 6.125 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.009951, allocations: 25.7 kB / 0.987 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.01012, allocations: 216.4 kB / 0.9872 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.01014, allocations: 11.91 kB / 0.9872 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.01023, allocations: 73.67 kB / 0.9873 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.01038, allocations: 338.8 kB / 0.9876 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.01051, allocations: 71.94 kB / 0.9876 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.01064, allocations: 83.55 kB / 0.9877 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.01082, allocations: 125.5 kB / 0.9878 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01083, allocations: 0 / 0.9878 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003102/0.01114, allocations: 197.4 kB / 0.988 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.01115, allocations: 8 kB / 0.988 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.01116, allocations: 0 / 0.988 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.01118, allocations: 0 / 0.988 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.01133, allocations: 27.98 kB / 0.9881 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.01134, allocations: 0 / 0.9881 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.89e-05/0.0114, allocations: 19.89 kB / 0.9881 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.01142, allocations: 11.98 kB / 0.9881 GB, free: 4.898 MB / 0.9356 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.000226/0.01165, allocations: 203.7 kB / 0.9883 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.01171, allocations: 19.86 kB / 0.9883 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.01193, allocations: 108.6 kB / 0.9884 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.01193, allocations: 0 / 0.9884 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.01194, allocations: 0 / 0.9884 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01194, allocations: 8.062 kB / 0.9884 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005855/0.01253, allocations: 0.551 MB / 0.989 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01253, allocations: 0 / 0.989 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.882e-05/0.01256, allocations: 15.86 kB / 0.989 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.01256, allocations: 4 kB / 0.989 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.01257, allocations: 4 kB / 0.989 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.01257, allocations: 3.938 kB / 0.989 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.01258, allocations: 7.938 kB / 0.989 GB, free: 3.91 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.01272, allocations: 111.7 kB / 0.9891 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.01276, allocations: 19.91 kB / 0.9891 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.01279, allocations: 4 kB / 0.9891 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.542e-05/0.01283, allocations: 7.938 kB / 0.9891 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.01286, allocations: 11.92 kB / 0.9891 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.01286, allocations: 4 kB / 0.9892 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002589/0.01312, allocations: 233.2 kB / 0.9894 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.01312, allocations: 0 / 0.9894 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002693/0.01339, allocations: 59.73 kB / 0.9894 GB, free: 3.438 MB / 0.9356 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.0001319/0.01352, allocations: 99.67 kB / 0.9895 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.01377, allocations: 103.9 kB / 0.9896 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.01377, allocations: 0 / 0.9896 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.276e-05/0.01381, allocations: 15.94 kB / 0.9896 GB, free: 3.211 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.01405, allocations: 20.36 kB / 0.9897 GB, free: 3.191 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007941/0.01484, allocations: 497.7 kB / 0.9901 GB, free: 2.672 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.01504, allocations: 191.4 kB / 0.9903 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.62e-05/0.01512, allocations: 37.61 kB / 0.9904 GB, free: 2.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.01517, allocations: 16.5 kB / 0.9904 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.01517, allocations: 0 / 0.9904 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of Templates: time 0.004978/0.02015, allocations: 1.202 MB / 0.9915 GB, free: 1.234 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] 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/jenkins/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: 8.348729357123375]