Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 107.7 kB / 15.99 MB, free: 6.348 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.001222/0.001222, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.328/1.328, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.494/2.494, allocations: 469.4 MB / 0.7423 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.48 kB / 0.9083 GB, free: 14.47 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2891, allocations: 159.1 MB / 1.064 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002033/0.2912, allocations: 0.774 MB / 1.064 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002269/0.2914, allocations: 47.84 kB / 1.065 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.692e-05/0.2916, allocations: 4 kB / 1.065 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.2917, allocations: 15.86 kB / 1.065 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.2918, allocations: 15.98 kB / 1.065 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 5.752e-05/0.2919, allocations: 12 kB / 1.065 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.2921, allocations: 179.6 kB / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003412/0.2925, allocations: 260.9 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.773e-05/0.2926, allocations: 95.66 kB / 1.065 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2927, allocations: 115.4 kB / 1.065 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.124e-05/0.2928, allocations: 24 kB / 1.065 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.495e-05/0.2928, allocations: 24 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.496e-05/0.2929, allocations: 75.77 kB / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.293, allocations: 123.2 kB / 1.065 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.2933, allocations: 287.5 kB / 1.066 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2933, allocations: 3.938 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2933, allocations: 4 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.2933, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.000633/0.2939, allocations: 0.5421 MB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.294, allocations: 12.02 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.646e-05/0.2941, allocations: 32.56 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.2944, allocations: 317.1 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/0.2945, allocations: 24.94 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.2945, allocations: 32.38 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.295, allocations: 339 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.295, allocations: 192 / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.2951, allocations: 15.94 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2951, allocations: 8 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003842/0.2955, allocations: 255.8 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.2966, allocations: 0.9207 MB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.229e-05/0.2967, allocations: 61.12 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.05e-05/0.2968, allocations: 29.77 kB / 1.068 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.2968, allocations: 7.938 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.2968, allocations: 34.56 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2968, allocations: 4 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002579/0.2971, allocations: 121.3 kB / 1.068 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.2971, allocations: 77.11 kB / 1.068 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004621/0.2976, allocations: 485.6 kB / 1.069 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.2976, allocations: 29.7 kB / 1.069 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2977, allocations: 179.6 kB / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.955e-06/0.2978, allocations: 7.906 kB / 1.069 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.9e-05/0.2978, allocations: 45.7 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.298, allocations: 342.8 kB / 1.069 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.751e-05/0.298, allocations: 59.95 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.155e-05/0.2981, allocations: 72.67 kB / 1.07 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.2983, allocations: 109.6 kB / 1.07 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2983, allocations: 0 / 1.07 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002375/0.2985, allocations: 189.1 kB / 1.07 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.2985, allocations: 6.031 kB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2986, allocations: 7.938 kB / 1.07 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.2986, allocations: 0 / 1.07 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.2987, allocations: 24 kB / 1.07 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2987, allocations: 3.984 kB / 1.07 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.395e-05/0.2988, allocations: 23.69 kB / 1.07 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.2988, allocations: 12 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001627/0.299, allocations: 193.7 kB / 1.07 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-05/0.299, allocations: 35.55 kB / 1.07 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.2992, allocations: 152.7 kB / 1.07 GB, free: 8.297 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.173e-05/0.2993, allocations: 184.2 kB / 1.071 GB, free: 8.109 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.447e-05/0.2993, allocations: 180.3 kB / 1.071 GB, free: 7.926 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-05/0.2994, allocations: 180.3 kB / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.2997, allocations: 0.5166 MB / 1.071 GB, free: 7.168 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.938e-05/0.2997, allocations: 108.9 kB / 1.071 GB, free: 7.055 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.2998, allocations: 108.9 kB / 1.072 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.793e-05/0.2998, allocations: 180.4 kB / 1.072 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.2999, allocations: 184.3 kB / 1.072 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.323e-05/0.3, allocations: 188.2 kB / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.014e-05/0.3, allocations: 176.3 kB / 1.072 GB, free: 6.199 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000144/0.3002, allocations: 339.4 kB / 1.073 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.3003, allocations: 221.6 kB / 1.073 GB, free: 5.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.091e-05/0.3004, allocations: 180.3 kB / 1.073 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.785e-05/0.3005, allocations: 104.9 kB / 1.073 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.862e-05/0.3005, allocations: 184.2 kB / 1.073 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.3006, allocations: 105 kB / 1.073 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003536/0.3009, allocations: 359.1 kB / 1.074 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.61e-07/0.301, allocations: 4 kB / 1.074 GB, free: 4.66 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002643/0.3012, allocations: 31.98 kB / 1.074 GB, free: 4.629 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0001216/0.3013, allocations: 173.2 kB / 1.074 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001537/0.3015, allocations: 75.89 kB / 1.074 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3015, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.615e-06/0.3015, allocations: 4 kB / 1.074 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.302, allocations: 481.2 kB / 1.074 GB, free: 3.898 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006379/0.3026, allocations: 0.588 MB / 1.075 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.3029, allocations: 0.7597 MB / 1.076 GB, free: 2.492 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.798e-05/0.303, allocations: 23.44 kB / 1.076 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of SimCode: time 2.9e-07/0.303, allocations: 7.938 kB / 1.076 GB, free: 2.461 MB / 0.8419 GB Notification: Performance of Templates: time 0.5568/0.8598, allocations: 3.26 MB / 1.079 GB, free: 21.59 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches