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.0007683/0.0007683, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008102/0.0008102, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8755/0.8755, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.716/1.716, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] 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: "" <> 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: Performance of FrontEnd - loaded program: time 2.956e-06/2.956e-06, allocations: 0 / 0.9809 GB, free: 2.633 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.441e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.629 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001512/0.001536, allocations: 0.8436 MB / 0.9818 GB, free: 1.785 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000249/0.001785, allocations: 83.7 kB / 0.9818 GB, free: 1.703 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.204e-05/0.001867, allocations: 7.938 kB / 0.9819 GB, free: 1.695 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.001982, allocations: 23.78 kB / 0.9819 GB, free: 1.672 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.00211, allocations: 15.81 kB / 0.9819 GB, free: 1.656 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 7.48e-05/0.002185, allocations: 51.94 kB / 0.9819 GB, free: 1.605 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.002392, allocations: 251.4 kB / 0.9822 GB, free: 1.359 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.002624, allocations: 174.8 kB / 0.9824 GB, free: 1.184 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.002763, allocations: 191.6 kB / 0.9825 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.002889, allocations: 119.7 kB / 0.9826 GB, free: 0.8789 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 4.246e-05/0.002932, allocations: 32 kB / 0.9827 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.709e-05/0.002959, allocations: 35.94 kB / 0.9827 GB, free: 0.8125 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.003018, allocations: 91.73 kB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 6.817e-05/0.003087, allocations: 87.7 kB / 0.9829 GB, free: 0.6367 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.00341, allocations: 466.5 kB / 0.9833 GB, free: 184 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.003413, allocations: 4 kB / 0.9833 GB, free: 180 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.733e-06/0.003414, allocations: 0 / 0.9833 GB, free: 180 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.003421, allocations: 0 / 0.9833 GB, free: 180 kB / 0.9323 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.0005471/0.003968, allocations: 0.5286 MB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.915e-05/0.004037, allocations: 12.03 kB / 0.9839 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.059e-05/0.004107, allocations: 74.72 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.004157, allocations: 36.7 kB / 0.984 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.004464, allocations: 270.5 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.004509, allocations: 37.03 kB / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.004536, allocations: 32.38 kB / 0.9843 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.004942, allocations: 404.2 kB / 0.9847 GB, free: 14.72 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.004956, allocations: 8.172 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.004976, allocations: 12.36 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.004985, allocations: 12.12 kB / 0.9847 GB, free: 14.69 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/0.005289, allocations: 303.6 kB / 0.985 GB, free: 14.39 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.0063, allocations: 0.9579 MB / 0.9859 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.006413, allocations: 89.16 kB / 0.986 GB, free: 13.28 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.392e-05/0.006457, allocations: 45.8 kB / 0.9861 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.006478, allocations: 4 kB / 0.9861 GB, free: 13.22 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.006498, allocations: 38.55 kB / 0.9861 GB, free: 13.18 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.0065, allocations: 0 / 0.9861 GB, free: 13.18 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.000258/0.006758, allocations: 169.7 kB / 0.9863 GB, free: 13 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.006795, allocations: 85.05 kB / 0.9863 GB, free: 12.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.007175, allocations: 0.513 MB / 0.9868 GB, free: 12.38 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.007188, allocations: 25.7 kB / 0.9869 GB, free: 12.35 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.007295, allocations: 207.7 kB / 0.9871 GB, free: 12.14 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.299e-05/0.007308, allocations: 23.83 kB / 0.9871 GB, free: 12.12 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.669e-05/0.007365, allocations: 49.7 kB / 0.9871 GB, free: 12.06 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.067e-05/0.007455, allocations: 346.8 kB / 0.9875 GB, free: 11.71 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.587e-05/0.007531, allocations: 71.95 kB / 0.9875 GB, free: 11.64 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.832e-05/0.00761, allocations: 92.25 kB / 0.9876 GB, free: 11.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.007721, allocations: 117.6 kB / 0.9877 GB, free: 11.43 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.007723, allocations: 0 / 0.9877 GB, free: 11.43 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001993/0.007922, allocations: 209.3 kB / 0.9879 GB, free: 11.22 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.007936, allocations: 4 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.007942, allocations: 0 / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.007956, allocations: 4.188 kB / 0.9879 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.008066, allocations: 27.92 kB / 0.988 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.008072, allocations: 7.938 kB / 0.988 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.454e-05/0.008126, allocations: 43.59 kB / 0.988 GB, free: 11.13 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.00814, allocations: 12 kB / 0.988 GB, free: 11.12 MB / 0.948 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.0001343/0.008274, allocations: 195.8 kB / 0.9882 GB, free: 10.92 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.008313, allocations: 35.77 kB / 0.9883 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.008462, allocations: 114.1 kB / 0.9884 GB, free: 10.77 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.008466, allocations: 4 kB / 0.9884 GB, free: 10.76 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.00847, allocations: 0 / 0.9884 GB, free: 10.76 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.008474, allocations: 3.938 kB / 0.9884 GB, free: 10.76 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.008841, allocations: 0.601 MB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.008846, allocations: 4 kB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.745e-05/0.008863, allocations: 3.984 kB / 0.989 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.008866, allocations: 7.938 kB / 0.989 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.008872, allocations: 0 / 0.989 GB, free: 10.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.008874, allocations: 4 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.008877, allocations: 3.938 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.856e-05/0.008965, allocations: 127.5 kB / 0.9891 GB, free: 9.918 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.009011, allocations: 55.75 kB / 0.9892 GB, free: 9.863 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.009031, allocations: 8 kB / 0.9892 GB, free: 9.855 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.551e-05/0.009066, allocations: 4 kB / 0.9892 GB, free: 9.852 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.009084, allocations: 4 kB / 0.9892 GB, free: 9.848 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.009087, allocations: 7.984 kB / 0.9892 GB, free: 9.84 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0002717/0.009359, allocations: 391 kB / 0.9895 GB, free: 9.461 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.009359, allocations: 0 / 0.9895 GB, free: 9.461 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001701/0.009529, allocations: 32 kB / 0.9896 GB, free: 9.43 MB / 0.948 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.000301/0.00983, allocations: 0.6699 MB / 0.9902 GB, free: 8.723 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001644/0.009995, allocations: 111.8 kB / 0.9903 GB, free: 8.613 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.009997, allocations: 0 / 0.9903 GB, free: 8.613 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 1.674e-05/0.01001, allocations: 19.94 kB / 0.9904 GB, free: 8.594 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.01021, allocations: 27.92 kB / 0.9904 GB, free: 8.57 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.0125, allocations: 2.917 MB / 0.9932 GB, free: 5.547 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.01263, allocations: 179.8 kB / 0.9934 GB, free: 5.355 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 8.041e-05/0.01271, allocations: 58.92 kB / 0.9935 GB, free: 5.297 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.01282, allocations: 96.47 kB / 0.9936 GB, free: 5.203 MB / 0.948 GB Notification: Performance of SimCode: time 5.41e-07/0.01282, allocations: 0 / 0.9936 GB, free: 5.203 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.0308, allocations: 6.479 MB / 0.9999 GB, free: 14.9 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.689/6.72, allocations: 7.938 kB / 0.9999 GB, free: 14.89 MB / 0.9636 GB " [Timeout remaining time 293] (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/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: 10.635103745386004]